use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class PlaceholderAPIExpansion method onEnable.
@Override
public void onEnable() {
if (!checkDependency("PlaceholderAPI", true)) {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
HookPlaceholderAPI hook = new HookPlaceholderAPI(this);
hook.register();
}
use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class LandsExpansion method afterEnable.
@Override
public void afterEnable() {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
Optional<Expansion> optionalNewbieHelper = expansionManager.getExpansion("NewbieHelper");
if (optionalNewbieHelper.isPresent()) {
new ListenerLands(this).register();
}
}
use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class IridiumSkyblockExpansion method onEnable.
@Override
public void onEnable() {
if (!checkDependency("IridiumSkyblock", true)) {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
new ListenerIridiumSkyblock(this).register();
}
use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class SuperVanishExpansion method onEnable.
@Override
public void onEnable() {
if (!checkDependency("SuperVanish", true) && !checkDependency("PremiumVanish", true)) {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
new ListenerVanish(this).register();
}
use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class CommandCombatLogXVersion method addExpansionInformation.
private void addExpansionInformation(List<String> messageList) {
ExpansionManager expansionManager = getExpansionManager();
List<Expansion> enabledExpansionList = expansionManager.getEnabledExpansions();
int enabledExpansionListSize = enabledExpansionList.size();
messageList.add("&f&lEnabled Expansions (&7" + enabledExpansionListSize + "&f&l):");
for (Expansion expansion : enabledExpansionList) {
String expansionName = expansion.getName();
messageList.add("&f&l - &7" + expansionName);
}
}
Aggregations