Advertisement
Guest User

Untitled

a guest
May 9th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. package me.drkprodigy69.learning;
  2.  
  3. import java.util.logging.Logger;
  4. import org.bukkit.plugin.PluginDescriptionFile;
  5. import org.bukkit.plugin.PluginManager;
  6. import org.bukkit.plugin.java.JavaPlugin;
  7.  
  8. public class Learning extends JavaPlugin{
  9. public final Logger logger = Logger.getLogger("Minecraft");
  10. public static Learning plugin;
  11. public final MyBlockListener bl = new MyBlockListener(this);
  12.  
  13. @Override
  14. public void onDisable() {
  15. PluginDescriptionFile pdffile = this.getDescription();
  16. this.logger.info(pdffile.getName() + "Has Been Disabled!");
  17. }
  18. @Override
  19. public void onEnable() {
  20. PluginDescriptionFile pdffile = this.getDescription();
  21. this.logger.info(pdffile.getName() +" Version " + pdffile.getVersion() + " Has Been Enabled! ");
  22. PluginManager pm = getServer().getPluginManager();
  23. pm.registerEvents(bl, this);
  24.  
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement