Guest User

Please help This is the code

a guest
Nov 2nd, 2014
154
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.PLGx_FusionzZ.Plugin;
  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 Plugin extends JavaPlugin{
  13. public final Logger logger = Logger.getLogger("Minecraft");
  14. public static Plugin 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() +"has been Enabled!");
  27.  
  28. }
  29.  
  30. public boolean onComand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
  31. Player player = (Player) sender;
  32. if (commandLabel.equalsIgnoreCase("Send me")) {
  33. player.sendMessage(ChatColor.BLUE +"Sent");
  34.  
  35. }
  36. return false;
  37.  
  38. }
  39.  
  40.  
  41. }
RAW Paste Data