NounsPicker/src/main/java/wtf/beatrice/nounspicker/NounsPicker.java

36 lines
777 B
Java
Raw Normal View History

2022-10-21 12:47:14 +02:00
package wtf.beatrice.nounspicker;
2022-10-21 23:58:52 +02:00
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
2022-10-21 23:58:52 +02:00
import wtf.beatrice.nounspicker.objects.PAPIManager;
import java.util.logging.Level;
public class NounsPicker extends JavaPlugin
2022-10-21 12:47:14 +02:00
{
2022-10-21 23:58:52 +02:00
private static NounsPicker instance;
private PluginManager pluginManager;
@Override
public void onEnable()
2022-10-21 12:47:14 +02:00
{
pluginManager = getServer().getPluginManager();
2022-10-21 23:58:52 +02:00
instance = this;
2022-10-21 23:58:52 +02:00
// register PlaceholderAPI
if(Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
new PAPIManager(this).register();
} else {
}
}
public static NounsPicker getInstance()
{
return instance;
2022-10-21 12:47:14 +02:00
}
}