package wtf.beatrice.nounspicker; import org.bukkit.Bukkit; import org.bukkit.plugin.PluginManager; import org.bukkit.plugin.java.JavaPlugin; import wtf.beatrice.nounspicker.objects.PAPIManager; import java.util.logging.Level; public class NounsPicker extends JavaPlugin { private static NounsPicker instance; private PluginManager pluginManager; @Override public void onEnable() { pluginManager = getServer().getPluginManager(); instance = this; // register PlaceholderAPI if(Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) { new PAPIManager(this).register(); } else { } } public static NounsPicker getInstance() { return instance; } }