[FUN/ADMN] RageQuit v0.3 - Angry? RageQuit! [1060]

Discussion in 'Inactive/Unsupported Plugins' started by killjoy64, Aug 14, 2011.

  1. Offline

    killjoy64

    ==RageQuit IS Now On DevBukkit! Click Here!==



    RageQuit - The Plugin To Rage Quit!
    Current Latest Version: v0.3

    Are You Angry So Much That You Want to RageQuit? Well Here's the Plugin For That! RageQuit allows you to RageQuit or RageQuit others for some laughs! RageQuit support SuperPerms and defaults to OP if no permisisons file is detected. Have Some Raging Moments!






    Features:
    • Permissions Suport!
    • Use /ragequit <Player> to ragequit them!
    • Rage Quit Using /rquit or /ragequit
    • Broadcasts a Message In-Game That You Rage Quit!
    • Broadcasts a Message In The Console That You Rage Quit!
    • Customizable Config When You RageQuit! (Tanks to SwearWord For Help In The Config Coding!)
    • **IN CONFIG YOU MUST DO "RageQuitMsg:" THEN THE RAGE QUIT MSG**
    Commands!

    • /ragequit - Makes You Rage Out Of The Server You're In!
    • /rquit - Alias For /ragequit
    Permission Nodes! (SuperPerms)
    -ragequit.ragequit *Ability to use /ragequit*
    -ragequit.ragequit.other * Ability to RageQuit Other In-Game /ragequit <Player>*

    Latest Release of RageQuit: v0.3 - Download - (Jar) (ZIP) *Jar Link May Not Work*
    Source Code:
    Show Spoiler
    Show Spoiler

    Code:
    package me.killjoy64.RageQuit;
    
    import java.util.logging.Logger;
    
    import org.bukkit.ChatColor;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class RageQuit extends JavaPlugin {
    private static final Logger log = Logger.getLogger("Minecraft");
    
        @Override
        public void onDisable() {
        log.info("[RAGE QUIT] Version 0.2 Is Disabled. Players Won't Rage.");
        }
    
        @Override
        public void onEnable() {
            try {
                RageQuitConfig.Initialize(this);
            } catch (Exception ex) {
    
                System.out.println("[RAGE QUIT] Version 0.2 Has Error" + ex.getMessage());
            }
    
        log.info("[RAGE QUIT] Version 0.2 Has Been Enabled. Rage Kick Some Players!");
    
        }
        public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
            Player player = (Player) sender;
            if (commandLabel.equalsIgnoreCase("ragequit")
                    || (commandLabel.equalsIgnoreCase("rquit")));
            player.kickPlayer(commandLabel);
            System.out.println("[RAGE QUIT] " + player.getDisplayName() + " Has Left The Game By Rage Quitting!");
            getServer().broadcastMessage(ChatColor.YELLOW + player.getDisplayName() + " " + RageQuitConfig.getRageQuitMsg());
            return false;
    }
    
    }
    

    Show Spoiler
    Show Spoiler

    Code:
    package me.killjoy64.RageQuit;
    
    import java.io.File;
    
    import org.bukkit.ChatColor;
    import org.bukkit.plugin.Plugin;
    import org.bukkit.util.config.Configuration;
    
    public class RageQuitConfig {
        private static File configfile;
        private static Configuration config;
        private static Plugin plugin;
    
        public static void Initialize(Plugin p) throws Exception
        {
            plugin = p;
            File directory = plugin.getDataFolder();
            configfile = new File(directory,"config.yml");
            if(!directory.exists()) directory.mkdir();
            if(!configfile.exists()) configfile.createNewFile();
            LoadConfig();
        }
        public static void LoadConfig() throws Exception{
            config = new Configuration(configfile);
            config.load();
            getRageQuitMsg();
    
        }
        public static String getRageQuitMsg() {
            return config.getString("RageQuitMsg", ChatColor.YELLOW + " RAGE QUIT!!");
        }
    }
    

    Config.yml
    Show Spoiler
    Show Spoiler

    Code:
    RageQuitMsg: <Leave Blank For Default Message, Or Input Your Own Message Here>



    Changelog:
    -Version 0.3
    -Added Permissions Support!
    -Added Ability to ragequit Others!
    -Version 0.2
    -Added Customizable Rage Quit Msg in config.yml
    -Version 0.1
    -Initial Release of RageQuit



    ToDo:
    -Add Permissions to RageQuit *Added In 0.3*

    -Add /ragekick <Player> for Server Admins/Mods to RageKick Players *Added In 0.3*

    -Fix the "RageQuitMsg" Not Appearing in the Config

    -Add Other Future Commands to improve RageQuit
     

    Attached Files:

    Noppoly likes this.
  2. Offline

    killjoy64

    @Kohle Oh minerman, you crazy bastard :S
     
  3. Offline

    Kohle

    Mwahahahahaha!
     
  4. Offline

    gameswereus

    Can you ban the person instead of kicking them? I don't want people spamming this. :p
     
  5. Offline

    killjoy64

    @gameswereus I think my intial idea was /raequit makes YOU ragequit, /ragekick <Player> which im working on now, will ragekick players, and i think i could maybe do a /rageban command lol.
    Something i'll work on :p
     
  6. Offline

    rookwood101

    @killjoy64 I think @gameswereus means that when people use the command for themselves, it bans them. I find this that sometimes people really hate the server I moderate on, so they login and go 'does this server do survival?' or something and if they don't like the answer they get, leave instantly. They could be banned when they do this.
     
  7. Offline

    Haekon

    Needs explosions and/or lightning. RAAAAAAAAAAGE!!!!
     
  8. Offline

    gameswereus

    Exactly :p Once they quit, they really did quit.
     
  9. Offline

    MuisYa

    We all love bukkit editor ;)
     
  10. Offline

    Seta

    nice done ;)
     
  11. Offline

    killjoy64

    Ok, after a while finally updated to version 0.3!! this Version you can ragequit others, and added permissions support! Next update ill be trying to go for some code cleaning, rageexplosions, and more commands, after that, just bug fixes! Thanks guys keep the suggestions copming, i take each one into kind consideration :)
     
  12. Offline

    killjoy64

    I won't put this on DevBukkit right now, i just tried to and it was buggy as hell, for now RageQuit is staying on the Bukkit.org forums
     
  13. Offline

    number1_Master

    awesome plugin but id like how it says in chat [Rage Quit]:number1_Master you just got rage quited. or something like that
    otherwise awesome plugin [diamondblock]
     
  14. Offline

    killjoy64

    Ok, Ragequit is on Dev Bukkit, im experimenting with this awesome new plugin called "Spout" So maybe ill make an awesome Spoutcraft plugin :S
     
  15. Offline

    rvg5

    i think it should be if the person does not say a keyword before leaving eg. "bye" "cya" "gtg" "brb" etc then the plugin automatically says (playername) HAS RAGEQUIT! :D hope my idea is a ok one and nice mod kyle
     
  16. Offline

    Ajinryu

    Hey wanna join my server or i can join yours :D
     

Share This Page