Advertisement
Guest User

Test.java file

a guest
May 15th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. package me.TheAsher0001.Test;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.command.Command;
  6. import org.bukkit.command.ConsoleCommandSender;
  7. import org.bukkit.entity.Player;
  8.  
  9. public class test {
  10. public final Logger logger = Logger.getLogger("Minecraft");
  11. public static test plugin;
  12.  
  13.  
  14. public void onEnable(){
  15. this.logger.info("Testplugin Enabled");
  16.  
  17.  
  18.  
  19. }
  20. public void onDisable(){
  21. this.logger.info("Testplugin Disabled");
  22.  
  23. }
  24.  
  25. public boolean onCommand(ConsoleCommandSender sender, Command cmd, String commandLabel, final String[] args ){
  26.  
  27. if(commandLabel.equalsIgnoreCase("test")){
  28. Player player = (Player) sender;
  29. player.sendMessage("This works!!!");
  30.  
  31. }
  32. return false;
  33.  
  34.  
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement