Advertisement
bubbleguj

ModLogin.java

Jul 29th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.74 KB | None | 0 0
  1. package me.BananaCrafting.ModLogin;
  2. import org.bukkit.plugin.PluginDescriptionFile;
  3. import org.bukkit.plugin.PluginManager;
  4. import org.bukkit.plugin.java.JavaPlugin;
  5. import me.BananaCrafting.ModLogin.ModListener;
  6. public class ModLogin extends JavaPlugin {
  7. public void onEnable() {
  8. PluginDescriptionFile pdfFile = this.getDescription();
  9. System.out.println(pdfFile.getName() + " v." + pdfFile.getVersion() + " ist verfuegbar!");
  10. PluginManager pm = getServer().getPluginManager();
  11. registerEvent();
  12.  }
  13. public void onDisable() {
  14. PluginDescriptionFile pdfFile = this.getDescription(); System.out.println(pdfFile.getName() + " v." + pdfFile.getVersion() + " ist nicht verfuegbar!");
  15. }
  16. public void registerEvent(){ new ModListener(this);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement