Advertisement
Thots

Untitled

Jun 9th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. package me.Yongblood11.SimpleCommands;
  2.  
  3. import java.util.logging.Logger;
  4.  
  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 SimpleCommands extends JavaPlugin{
  12. public static Logger logger = Logger.getLogger("Minecraft");
  13. public static SimpleCommands plugin;
  14.  
  15. @Override
  16. public void onDisable() {
  17. PluginDescriptionFile pdfFile = this.getDescription();
  18. this.logger.info(pdfFile.getName() + "Has been disabled");
  19. }
  20.  
  21. @Override
  22. public void onEnable() {
  23. PluginDescriptionFile pdfFile = this.getDescription();
  24. this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " has been enabled!");
  25. }
  26.  
  27. public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
  28. Player player = (Player) sender;
  29. if(commandLabel.equalsIgnoreCase("tp")){
  30. player.teleport()
  31. }
  32. }
  33.  
  34.  
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement