use of me.clip.placeholderapi.PlaceholderAPIPlugin in project MyPet by xXKeyleXx.
the class PlaceholderApiHook method onEnable.
@Override
public boolean onEnable() {
boolean loaded = registerParentPlaceHolder();
if (loaded) {
registerPlaceholder();
PlaceholderAPIPlugin plugin = MyPetApi.getPluginHookManager().getPluginInstance(PlaceholderAPIPlugin.class).get();
if (Util.versionCompare(plugin.getDescription().getVersion(), "2.8.5") < 0) {
Bukkit.getPluginManager().registerEvents(this, MyPetApi.getPlugin());
}
}
return loaded;
}
Aggregations