use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class FabledSkyBlockExpansion method onEnable.
@Override
public void onEnable() {
if (!checkDependency("FabledSkyBlock", true)) {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
new ListenerFabledSkyBlock(this).register();
}
use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class CMIExpansion method onEnable.
@Override
public void onEnable() {
if (!checkDependency("CMI", true)) {
ICombatLogX plugin = getPlugin();
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
new ListenerCMI(this).register();
}
use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class RegionExpansion method onEnable.
@Override
public final void onEnable() {
ICombatLogX plugin = getPlugin();
if (!checkDependencies()) {
Logger logger = getLogger();
logger.info("Some dependencies for this expansion are missing!");
ExpansionManager expansionManager = plugin.getExpansionManager();
expansionManager.disableExpansion(this);
return;
}
new RegionMoveListener(this).register();
new RegionVulnerableListener(this).register();
this.enabledSuccessfully = true;
afterEnable();
}
use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class CombatPlugin method onEnable.
@Override
public void onEnable() {
new CommandCombatLogX(this).register();
new CommandCombatTimer(this).register();
new CommandTogglePVP(this).register();
new ListenerConfiguration(this).register();
new ListenerDamage(this).register();
new ListenerPunish(this).register();
new ListenerUntag(this).register();
getDeathListener().register();
this.timerUpdateTask.register();
new UntagTask(this).register();
ExpansionManager expansionManager = getExpansionManager();
expansionManager.enableExpansions();
broadcastEnableMessage();
CorePlugin corePlugin = JavaPlugin.getPlugin(CorePlugin.class);
UpdateManager updateManager = corePlugin.getUpdateManager();
updateManager.addResource(this, 31689L);
}
use of com.github.sirblobman.combatlogx.api.expansion.ExpansionManager in project CombatLogX by SirBlobman.
the class CombatPlugin method onReload.
@Override
public void onReload() {
ConfigurationManager configurationManager = getConfigurationManager();
List<String> fileNameList = Arrays.asList("commands.yml", "config.yml", "punish.yml");
for (String fileName : fileNameList) {
configurationManager.reload(fileName);
}
LanguageManager languageManager = getLanguageManager();
languageManager.reloadLanguages();
IPunishManager punishManager = getPunishManager();
punishManager.loadPunishments();
ExpansionManager expansionManager = getExpansionManager();
expansionManager.reloadConfigs();
}
Aggregations