Advertisement
Guest User

Untitled

a guest
Dec 28th, 2012
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. package me.TheLazeboy.superpowers;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.plugin.PluginDescriptionFile;
  6. import org.bukkit.plugin.java.JavaPlugin;
  7.  
  8.  
  9. public class Superpowers extends JavaPlugin{
  10. public final Logger logger = Logger.getLogger("Minecraft");
  11. public static Superpowers plugin;
  12.  
  13. @Override
  14. public void onDisable() {
  15. PluginDescriptionFile pdfFile = this.getDescription();
  16. this.logger.info(pdfFile.getName() + " Has Been Disabled!");
  17. }
  18.  
  19. @Override
  20. public void onEnable() {
  21. PluginDescriptionFile pdfFile = this.getDescription();
  22. this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + " Has Been Enabled!");
  23. getCommand("heal").setExecutor(new SuperpowersCommandExecutor(this));
  24. getCommand("spheal").setExecutor(new SuperpowersCommandExecutor(this));
  25. getCommand("tp").setExecutor(new SuperpowersCommandExecutor(this));
  26. getCommand("sptp").setExecutor(new SuperpowersCommandExecutor(this));
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement