Advertisement
Guest User

Minecraft Plugin not working????

a guest
Feb 4th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. package me.Unionjackjz1.YTT;
  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 Main extends JavaPlugin{
  13. public final Logger logger = Logger.getLogger("Minecraft");
  14. public static Main 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. @Override
  23. public void onEnable() {
  24. PluginDescriptionFile pdfFile = this.getDescription();
  25. this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " Has Been Enabled!");
  26.  
  27. }
  28.  
  29. public boolean onCommand(CommandSender sender, Command cmd, String commandLable, String[] args){
  30. Player player = (Player) sender;
  31. if(commandLable.equalsIgnoreCase("sendme")){
  32. player.sendMessage(ChatColor.GOLD + "Sent");
  33.  
  34. }
  35. return false;
  36. }
  37.  
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement