use of com.github.sirblobman.combatlogx.api.expansion.Expansion in project CombatLogX by SirBlobman.
the class ListenerModernItemPickup method isAllowed.
private boolean isAllowed() {
Expansion expansion = getExpansion();
ConfigurationManager configurationManager = expansion.getConfigurationManager();
YamlConfiguration configuration = configurationManager.get("items.yml");
return !configuration.getBoolean("prevent-pickup");
}
use of com.github.sirblobman.combatlogx.api.expansion.Expansion in project CombatLogX by SirBlobman.
the class ListenerCommands method getConfiguration.
private YamlConfiguration getConfiguration() {
Expansion expansion = getExpansion();
ConfigurationManager configurationManager = expansion.getConfigurationManager();
return configurationManager.get("commands.yml");
}
use of com.github.sirblobman.combatlogx.api.expansion.Expansion in project CombatLogX by SirBlobman.
the class ListenerDrop method getConfiguration.
private YamlConfiguration getConfiguration() {
Expansion expansion = getExpansion();
ConfigurationManager configurationManager = expansion.getConfigurationManager();
return configurationManager.get("items.yml");
}
use of com.github.sirblobman.combatlogx.api.expansion.Expansion in project CombatLogX by SirBlobman.
the class ListenerGameMode method getConfiguration.
private YamlConfiguration getConfiguration() {
Expansion expansion = getExpansion();
ConfigurationManager configurationManager = expansion.getConfigurationManager();
return configurationManager.get("game-mode.yml");
}
use of com.github.sirblobman.combatlogx.api.expansion.Expansion 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;
}
Aggregations