Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.BananaCrafting.ModLogin;
- import org.bukkit.plugin.PluginDescriptionFile;
- import org.bukkit.plugin.PluginManager;
- import org.bukkit.plugin.java.JavaPlugin;
- import me.BananaCrafting.ModLogin.ModListener;
- public class ModLogin extends JavaPlugin {
- public void onEnable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- System.out.println(pdfFile.getName() + " v." + pdfFile.getVersion() + " ist verfuegbar!");
- PluginManager pm = getServer().getPluginManager();
- registerEvent();
- }
- public void onDisable() {
- PluginDescriptionFile pdfFile = this.getDescription(); System.out.println(pdfFile.getName() + " v." + pdfFile.getVersion() + " ist nicht verfuegbar!");
- }
- public void registerEvent(){ new ModListener(this);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement