Search in sources :

Example 1 with ListenerBSkyBlock

use of combatlogx.expansion.compatibility.bskyblock.listener.ListenerBSkyBlock in project CombatLogX by SirBlobman.

the class BSkyBlockExpansion method onEnable.

@Override
public void onEnable() {
    if (!checkDependency("BentoBox", true)) {
        ICombatLogX plugin = getPlugin();
        ExpansionManager expansionManager = plugin.getExpansionManager();
        expansionManager.disableExpansion(this);
        return;
    }
    if (!HookBentoBox.findBSkyBlock(this)) {
        ICombatLogX plugin = getPlugin();
        ExpansionManager expansionManager = plugin.getExpansionManager();
        expansionManager.disableExpansion(this);
        return;
    }
    new ListenerBSkyBlock(this).register();
}
Also used : ExpansionManager(com.github.sirblobman.combatlogx.api.expansion.ExpansionManager) ICombatLogX(com.github.sirblobman.combatlogx.api.ICombatLogX) ListenerBSkyBlock(combatlogx.expansion.compatibility.bskyblock.listener.ListenerBSkyBlock)

Aggregations

ICombatLogX (com.github.sirblobman.combatlogx.api.ICombatLogX)1 ExpansionManager (com.github.sirblobman.combatlogx.api.expansion.ExpansionManager)1 ListenerBSkyBlock (combatlogx.expansion.compatibility.bskyblock.listener.ListenerBSkyBlock)1