Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2012
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.81 KB | None | 0 0
  1. package com.fishchunks.AntiPlanetMC;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.plugin.PluginDescriptionFile;
  6. import org.bukkit.plugin.PluginManager;
  7. import org.bukkit.plugin.java.JavaPlugin;
  8.  
  9. public class AntiPlanetMC extends JavaPlugin{
  10. public final Logger logger = Logger.getLogger("Minecraft");
  11. public static AntiPlanetMC plugin;
  12. public static PluginManager pm;
  13. public final AntiPlanetMCPlayerListener pl = new AntiPlanetMCPlayerListener();
  14.    
  15. public void onEnable(){
  16.     PluginDescriptionFile pdfFile = this.getDescription();
  17.     this.logger.info(pdfFile.getName() + " Has Been Enabled." + pdfFile.getVersion());
  18.     pm.registerEvents(this.pl, this);
  19. }
  20.  
  21.  
  22. public void onDisable(){
  23.     PluginDescriptionFile pdfFile = this.getDescription();
  24.     this.logger.info(pdfFile.getName() + " Has Been Disabled.");
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement