Advertisement
Guest User

Untitled

a guest
Jan 4th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. package craftedevil.plugin;
  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 WallSpleef extends JavaPlugin {
  10. public final Logger logger = Logger.getLogger("Minecraft");
  11. public static WallSpleef plugin;
  12. public final onPlayerLoginEvent pl = new onPlayerLoginEvent();
  13. public final PlayerCountDown pc = new PlayerCountDown();
  14.  
  15. @Override
  16. public void onDisable() {
  17. PluginDescriptionFile pdfFile = this.getDescription();
  18. this.logger.info(pdfFile.getName() + " Has been disabled!");
  19. }
  20.  
  21. @Override
  22. public void onEnable() {
  23. PluginDescriptionFile pdfFile = this.getDescription();
  24. this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion()
  25. + " Has been enabled!");
  26. PluginManager pm = getServer().getPluginManager();
  27. pm.registerEvents(this.pl, this);
  28. pm.registerEvents(this.pc, this);
  29. }
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement