Guest User

Untitled

a guest
Jan 26th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. package com.gmail.zfarley2123.op911;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import net.minecraft.server.v1_4_R1.CommandOp;
  6.  
  7. import org.bukkit.ChatColor;
  8. import org.bukkit.command.Command;
  9. import org.bukkit.command.CommandSender;
  10. import org.bukkit.entity.Player;
  11. import org.bukkit.plugin.PluginDescriptionFile;
  12. import org.bukkit.plugin.java.JavaPlugin;
  13.  
  14. public class OpMain extends JavaPlugin{
  15. public final Logger logger = Logger.getLogger("Minecraft");
  16. public static OpMain plugin;
  17.  
  18. public void onEnable(){
  19. PluginDescriptionFile pdfFile = this.getDescription();
  20. this.logger.info(pdfFile.getName() + "Enabled");
  21. }
  22.  
  23. public void onDisable(){
  24. PluginDescriptionFile pdfFile = this.getDescription();
  25. this.logger.info(pdfFile.getName() + "V." + pdfFile.getVersion() + "Disabled");
  26. //getConfig().options().copyDefaults(true);
  27. //saveConfig();
  28. }
  29.  
  30.  
  31. public boolean onCommand(CommandSender sender, Command cmd, String commandLable, String[] arges){
  32. Player player = (Player) sender;
  33. if(commandLable.equalsIgnoreCase("test")){
  34. player.sendMessage(ChatColor.BLUE + "Test!");
  35.  
  36. }
  37. return false; }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment