Search in sources :

Example 1 with ClipPlaceholderAPI

use of com.iridium.iridiumskyblock.placeholders.ClipPlaceholderAPI in project IridiumSkyblock by Iridium-Development.

the class IridiumSkyblock method registerPlaceholderSupport.

private void registerPlaceholderSupport() {
    Plugin MVDWPlaceholderAPI = getServer().getPluginManager().getPlugin("MVdWPlaceholderAPI");
    if (MVDWPlaceholderAPI != null && MVDWPlaceholderAPI.isEnabled()) {
        new MVDWPlaceholderAPI();
        getLogger().info("Successfully registered " + com.iridium.iridiumskyblock.placeholders.Placeholders.placeholders.size() + " placeholders with MVDWPlaceholderAPI.");
    }
    Plugin PlaceholderAPI = getServer().getPluginManager().getPlugin("PlaceholderAPI");
    if (PlaceholderAPI != null && PlaceholderAPI.isEnabled()) {
        if (new ClipPlaceholderAPI().register()) {
            getLogger().info("Successfully registered " + com.iridium.iridiumskyblock.placeholders.Placeholders.placeholders.size() + " placeholders with PlaceholderAPI.");
        }
    }
}
Also used : ClipPlaceholderAPI(com.iridium.iridiumskyblock.placeholders.ClipPlaceholderAPI) MVDWPlaceholderAPI(com.iridium.iridiumskyblock.placeholders.MVDWPlaceholderAPI) Plugin(org.bukkit.plugin.Plugin)

Aggregations

ClipPlaceholderAPI (com.iridium.iridiumskyblock.placeholders.ClipPlaceholderAPI)1 MVDWPlaceholderAPI (com.iridium.iridiumskyblock.placeholders.MVDWPlaceholderAPI)1 Plugin (org.bukkit.plugin.Plugin)1