use of com.github.sirblobman.combatlogx.api.ICombatLogX in project CombatLogX by SirBlobman.
the class ASkyBlockExpansion method onEnable.
@Override
public void onEnable() {
if (!checkDependency("ASkyBlock", true)) {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
new ListenerASkyBlock(this).register();
}
use of com.github.sirblobman.combatlogx.api.ICombatLogX 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();
}
use of com.github.sirblobman.combatlogx.api.ICombatLogX in project CombatLogX by SirBlobman.
the class CrackShotExpansion method onEnable.
@Override
public void onEnable() {
if (!checkDependency("CrackShot", true)) {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
new ListenerCrackShot(this).register();
}
use of com.github.sirblobman.combatlogx.api.ICombatLogX in project CombatLogX by SirBlobman.
the class FactionsExpansion method checkDependencies.
@Override
public boolean checkDependencies() {
ICombatLogX combatLogX = getPlugin();
JavaPlugin plugin = combatLogX.getPlugin();
FactionsHelper factionsHelper = new FactionsHelper(plugin);
this.factionsHandler = factionsHelper.getFactionsHandler();
return (this.factionsHandler != null);
}
use of com.github.sirblobman.combatlogx.api.ICombatLogX in project CombatLogX by SirBlobman.
the class FeatherBoardExpansion method onEnable.
@Override
public void onEnable() {
if (!checkDependency("FeatherBoard", true, "5")) {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
new ListenerFeatherBoard(this).register();
}
Aggregations