Advertisement
PoweredByRage

Basic Code

Feb 13th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. package me.PoweredByRage.basic;
  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 Basic extends JavaPlugin{
  13. public final Logger logger = Logger.getLogger("Minecraft");
  14. public static Basic plugin;
  15.  
  16. @Override
  17. public void onDisable() {
  18. PluginDescriptionFile pdfFile = this.getDescription();
  19. this.logger.info(pdfFile.getName() + " Has Succesfully 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 Succesfully Been Enabled!");
  26.  
  27. }
  28.  
  29. public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
  30. Player player = (Player) sender;
  31. if(commandLabel.equalsIgnoreCase("sendme")){
  32. player.sendMessage(ChatColor.GOLD + "Sent");
  33. }
  34. return false;
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement