[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

    Kohle

    Nice! Good job, @killjoy64!

    I'm glad I could test it for you. ;)
     
  3. Offline

    killjoy64

    @Kohle yeah, minerman4 (Kohle) was the tester of this plugin, it works :)

    OH and, btw This is my FIRST publicly released plugin! YAY! So plz give me feedback and ideas about this plugin!
    Thanks!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  4. Offline

    undeadmach1ne

    i like the idea of rage-kicking other people...ill probably install on my test setup for fun :) thanks...
     
  5. Offline

    killjoy64

    @undeadmach1ne lol, thx for using my plugin :p im gonna add OP only version soon, then permissions
     
  6. Offline

    feildmaster

    Add being able to type just

    RAGEQUIT!
    or
    RAGEQUITS!

    and it does it. :)

    Also, it should do the following in the broadcast:
    "Player name rage quits!" Not quitted.

    Or maybe listen on the command...
    /me and when they say
    /me ragequits
    it'll then add on...
    "playername has left the game"
     
  7. Offline

    undeadmach1ne

    yeah so i am testing some stuff tonight and every time instead of /stop i /rquit then typed stop into the console :) lol no one was even on the server to see it :p cant wait to see configurable msg and possibly ragekicking other players...
     
  8. Offline

    killjoy64

    @feildmaster haha! Thanks for the suggestions! I just today realized "Quitted" isn't a real word XD
    And i am thinking that if it listens to the command /me ragequits, you would need another plugin installed or include it into ragequit, So i am thinking that could be a config option, for peiple with commandbook/essentials ^_^

    @undeadmach1ne you know what? I did that too on my final test run of the plugin :p I ragequit, then stopped the server. :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  9. Offline

    cjbh1996

    I second feildmaster's suggestion. Plugins can listen for just words. Like censorship. It listens for a swear, if one is found it does something. In this case, censor it. You could make the plugin listen for a word/phrase (in this case "RAGEQUIT") and when it hears that word/phrase it does something, in this case quits the player. Perhaps you could make it listen for only uppercase "RAGEQUIT"? That way someone couldn't do it by accident. Please add this function!
     
  10. Offline

    feildmaster

    /me is built into craftbukkit...! :p
     
  11. Offline

    killjoy64

    YAY :D
     
  12. Offline

    killjoy64

    Ok, everyone thx for the suggestions! I just updated the plugin, added a config (although nothing to configure yet), and the next version will be a HUGE one, but i was busy for the past days so now i get to start coding again :)
     
  13. Offline

    Orcem12

    You mad?
     
  14. Offline

    killjoy64

  15. Offline

    4am

    You can still override it with the chat preprocess event

    Just to go on record, my suggestion is an option so that when players ragequit, they explode (like TNT or a creeper) and their inventory drops, and if possible all stacks are given random (and large) velocities so they fly all over the place:)

    I'm pretty sure you can cause instant explosions without creating a TNT, creeper, or lightning strike, but I've never looked into it...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  16. Offline

    killjoy64

    @4am Good Idea! I was in the bukkitdev IRC and someone suggested the same thing :p
    So thx to the bukkitddev IRC channel my config is now working!
     
  17. Offline

    4am

    Wow you should keep talking to that awesome person because I bet they have really good and fun ideas all the time :p
     
  18. Offline

    BioRage

    So if you do /rquit you go back to desktop? Or it just log's you out?

    Also, can you add configurablity to the command, be nice as in "valve games" where you just push "q" and type quit.

    In this case /quit to go to desktop
     
    killjoy64 likes this.
  19. Offline

    killjoy64

    @BioRage Hm, definatly something i'd consider, so liek if you ragequit it exits you our of Minecraft?
     
  20. Offline

    BioRage

    Yeah basically, because recently there's been some plugin's where if you push "x" it may not save some items, however, this is something else to talk about later.

    The main idea is, instead of click "x" or "esc -> disconnect -> x" you just type /quit /rquit and it either triggers a configurable message, or it just disconnects you to your desktop (alt+f4) essentially.
     
  21. Offline

    killjoy64

    @BioRage I think i'll go for that idea, thx for the Awesome Ideas everyone! I am just kindly awaiting patientally for Bukkit to approve this plugin so i can go further ^_^
     
  22. Offline

    BioRage

    Good luck, I'll test it once it gets approved (probably a week or 2 ;))
     
  23. Offline

    killjoy64

  24. Offline

    4am

    You'd need Spout support for something like that, it would require a client mod.
     
  25. Offline

    killjoy64

    @4am Hhmm, I thought so because i didn't really know you could do that lol.
     
  26. Offline

    Kohle

    @killjoy64

    How about making the kick message configurable? Right now it jut says the command label.
     
  27. Offline

    killjoy64

    @Kohle i added the config in the v0.2 update, when it generates the config you have to type RageQuitMsg: <Msg Here>
     
  28. Offline

    SwearWord

    @killjoy64
    No credit for my Configuration class? Also your title's version doesn't match.
     
  29. Offline

    killjoy64

    @SwearWord Oh, thx, ill add that right now :)
     
  30. Offline

    Kohle

    Good, because I really was hoping I could change it to say "You dumbass. you just rage quit." ;)
     

Share This Page