Search in sources :

Example 1 with PlaceholderAPIPlugin

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;
}
Also used : PlaceholderAPIPlugin(me.clip.placeholderapi.PlaceholderAPIPlugin)

Aggregations

PlaceholderAPIPlugin (me.clip.placeholderapi.PlaceholderAPIPlugin)1