Advertisement
PoweredByRage

Disable Plugin List CODE

Feb 18th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. package me.poweredbyrage.pluginlistdisable;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.ChatColor;
  6. import org.bukkit.command.Command;
  7. import org.bukkit.command.CommandSender;
  8. import org.bukkit.entity.Player;
  9. import org.bukkit.plugin.PluginDescriptionFile;
  10. import org.bukkit.plugin.java.JavaPlugin;
  11.  
  12. public class PluginListDisable extends JavaPlugin{
  13. public final Logger logger = Logger.getLogger("Minecraft");
  14. public static PluginListDisable plugin;
  15.  
  16. @Override
  17. public void onDisable() {
  18. PluginDescriptionFile pdfFile = this.getDescription();
  19. this.logger.info(pdfFile.getName() + " Has Been Disabled");
  20.  
  21. }
  22.  
  23. @Override
  24. public void onEnable() {
  25. PluginDescriptionFile pdfFile = this.getDescription();
  26. this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + "Has Been Enabled");
  27.  
  28. }
  29.  
  30. public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
  31. Player player = (Player) sender;
  32. if(commandLabel.equalsIgnoreCase("pl")){
  33. player.sendMessage(ChatColor.DARK_RED + "Insufficient rank.");
  34. }else if(commandLabel.equalsIgnoreCase("plugins")){
  35. player.sendMessage(ChatColor.DARK_RED + "Insufficient rank.");
  36. }
  37. return false;
  38.  
  39. }
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement