Advertisement
Guest User

Untitled

a guest
Jun 5th, 2013
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. package me.TheLazeboy.Staves;
  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 Staves extends JavaPlugin{
  13. public final Logger logger = Logger.getLogger("Minecraft");
  14. public static Staves 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. if(commandLabel.equalsIgnoreCase("staves")){
  32. Player player = (Player) sender;
  33. player.sendMessage(ChatColor.GRAY + "Staves was made by TheLazeboy!");
  34. }
  35. return false;
  36.  
  37.  
  38. }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement