use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class HookPlaceholderAPI method getNewbieHelper.
private Expansion getNewbieHelper() {
ICombatLogX plugin = this.expansion.getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
Optional<Expansion> optionalExpansion = expansionManager.getExpansion("NewbieHelper");
if (optionalExpansion.isPresent()) {
Expansion expansion = optionalExpansion.get();
State state = expansion.getState();
if (state == State.ENABLED)
return expansion;
}
return null;
}
use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class SuperiorSkyblockExpansion method onEnable.
@Override
public void onEnable() {
if (!checkDependency("SuperiorSkyblock2", true)) {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
new ListenerSuperiorSkyblock(this).register();
}
use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class ForceFieldExpansion method onEnable.
@Override
public void onEnable() {
if (!checkDependency("ProtocolLib", true)) {
ExpansionManager expansionManager = getPlugin().getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
registerForceFieldListener();
this.successfullyEnabled = true;
}
use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class RewardExpansion method onEnable.
@Override
public void onEnable() {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
if (!checkDependency("Vault", true)) {
expansionManager.disableExpansion(this);
return;
}
this.hookVault = new HookVault(this);
if (!this.hookVault.setupEconomy()) {
expansionManager.disableExpansion(this);
return;
}
RewardManager rewardManager = getRewardManager();
rewardManager.loadRewards();
new ListenerRewards(this).register();
}
use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class VanishNoPacketExpansion method onEnable.
@Override
public void onEnable() {
if (!checkDependency("VanishNoPacket", true, "3")) {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
new ListenerVanish(this).register();
}
Aggregations