Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
52
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.the133448.servertest;
  2.  
  3. import java.util.logging.Logger;
  4. import org.bukkit.ChatColor;
  5. import org.bukkit.command.Command;
  6. import org.bukkit.command.CommandSender;
  7. import org.bukkit.entity.Player;
  8. import org.bukkit.plugin.PluginDescriptionFile;
  9. import org.bukkit.plugin.java.JavaPlugin;
  10.  
  11. public class servertest
  12. extends JavaPlugin
  13. {
  14. public final Logger logger = Logger.getLogger("Minecraft");
  15. public static servertest plugin;
  16.  
  17. public void onDisable()
  18. {
  19. PluginDescriptionFile pdfFile = getDescription();
  20. this.logger.info(pdfFile.getName() + " Has been Disabled!");
  21. }
  22.  
  23. public void onEnable()
  24. {
  25. PluginDescriptionFile pdfFile = getDescription();
  26. this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " Has been enabled.");
  27. }
  28.  
  29. public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args)
  30. {
  31. Player player = (Player)sender;
  32. if (commandLabel.equalsIgnoreCase("hello")) {
  33. player.sendMessage(ChatColor.RED + "Hello there, how are you?");
  34. }
  35. return false;
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement