Plugin Kicker

Discussion in 'Inactive/Unsupported Plugins' started by Zogan10, Jan 7, 2013.

?

Tell Me What You Think

  1. Good

    2 vote(s)
    25.0%
  2. Bad

    6 vote(s)
    75.0%
  1. Offline

    Zogan10

    [​IMG]
    -------------------------------------------------------------------------------------------------------------------------------

    Features

    Plugin Kicker Provides To Keep The Leachers Away From Servers And Stealing The Server Plugins,Also The Owner Can Set Messages In The Config.
    -------------------------------------------------------------------------------------------------------------------------------
    Commands

    • /Plugin - Kicks Player From Server
    • /Pl - Kicks Player From Server
    -------------------------------------------------------------------------------------------------------------------------------
    Things To Do

    -------------------------------------------------------------------------------------------------------------------------------
    Things Coming In v0.2

    -------------------------------------------------------------------------------------------------------------------------------
    Bugs

    • Let Me Know In The Comments If Any Bugs Are Found
    -------------------------------------------------------------------------------------------------------------------------------
     
  2. Offline

    ThunderWaffeMC

    How do you know when they are looking at your plugins? And also, can't you just use the /kick <player> command? There are plugins that disable viewing of the /plugins. Would be a lot more effective to make it like that.
     
  3. Offline

    Zogan10

    But still its useful and its my first plugin.......
     
  4. Offline

    LaxWasHere

    Not a bad idea. But then again, people can just type / and hit tab.
     
  5. Offline

    ThunderWaffeMC

    It's good as in the code but it's kind of useless? And by the way, can you answer my question, please? I want to know;

     
  6. Offline

    Zogan10

    You Don't It Just Kicks Them -_-
     
  7. Offline

    bryce325

    When I join a server I do /pl right away to test how secretive they are as well as just being curious as to what they use. I would be rather upset for being kicked after trying.
     
    kreashenz likes this.
  8. Offline

    Lolmewn Retired Staff

    Why Do You Uppercase Every Single Word You Type?
    That's Very Annoying To Read. Please Fix.
     
  9. Offline

    Zogan10

    Sorry about that I'm trying not to do it anymore do I cant help it
     
  10. I bet he speaks LOLCODE
    kthxbai
     
  11. Offline

    LaxWasHere

    Ha! I Used To Do This But I Got Tired Pressing Caps/Shift All The Time.
     
  12. Offline

    Zogan10

    LOL!
     
  13. Offline

    kreashenz

    Well I used this in my server, I just edited a current plugin I had the source of, and added it. Instead of making them see when they type /pl, make a new command.. Its a lot easier. That's how I did it too :)
     
  14. Offline

    Archarin

    *cough* /? *cough*
     
  15. Offline

    ShootToMaim

    This has to be less than 20 lines of code..
     
    ThunderWaffeMC likes this.
  16. Offline

    ShootToMaim

    I was so determined to show that this was such an easy plugin to make, I made one in under 5 minutes.
    Code:text
    1. package code.shoottomaim.simpleplkicker;
    2.  
    3. import java.io.IOException;
    4. import java.util.logging.Logger;
    5. import org.bukkit.command.Command;
    6. import org.bukkit.command.CommandSender;
    7. import org.bukkit.command.ConsoleCommandSender;
    8. import org.bukkit.entity.Player;
    9. import org.bukkit.event.Listener;
    10. import org.bukkit.plugin.java.JavaPlugin;
    11.  
    12. import code.shoottomaim.simpleplkicker.Metrics;
    13.  
    14. public class SimplePlKicker extends JavaPlugin implements Listener {
    15. private static final Logger log = Logger.getLogger("Minecraft");
    16. public ConsoleCommandSender console;
    17. public static final String pluginname = "SimplePlKicker";
    18.  
    19. public void onDisable() {
    20. log.info("[SimplePlKicker] " + getDescription().getName() + " v" + getDescription().getVersion() + " has been disabled.");
    21. }
    22.  
    23. public void onEnable() {
    24. try {
    25. Metrics metrics = new Metrics(this);
    26. metrics.start();
    27. } catch (IOException e) {
    28. // Failed to submit the stats :(
    29. }
    30. log.info("[SimplePlKicker] " + getDescription().getName() + " v" + getDescription().getVersion() + " has been enabled.");
    31. }
    32.  
    33. public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
    34. if(!(sender instanceof Player)) return false;
    35. Player player = (Player) sender;
    36. if(cmd.getName().equalsIgnoreCase("pl") || cmd.getName().equalsIgnoreCase("plugins") || cmd.getName().equalsIgnoreCase("help")){
    37. player.kickPlayer("You do not have access to /pl, /plugins, or /help.");
    38. return true;
    39. } else if(cmd.getName().equalsIgnoreCase("pl") || cmd.getName().equalsIgnoreCase("plugins") || cmd.getName().equalsIgnoreCase("help") && player.hasPermission("SimplePlKicker.exempt")){
    40. return false;
    41. }
    42. return false;
    43. }
    44. }

    Under 50 lines of code (46).
    Now if only I can get it to work...
     
  17. Offline

    Wolf7115

    There is a way better and more simple way of doing this.
     
    ShootToMaim likes this.

Share This Page