use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class RegionHandler method getConfiguration.
private YamlConfiguration getConfiguration() {
RegionExpansion expansion = getExpansion();
ConfigurationManager configurationManager = expansion.getConfigurationManager();
return configurationManager.get("config.yml");
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class CombatListener method isDebugMode.
protected final boolean isDebugMode() {
ConfigurationManager configurationManager = getPluginConfigurationManager();
YamlConfiguration configuration = configurationManager.get("config.yml");
return configuration.getBoolean("debug-mode", false);
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class CombatListener method isWorldDisabled.
protected final boolean isWorldDisabled(World world) {
ICombatLogX plugin = getCombatLogX();
ConfigurationManager configurationManager = plugin.getConfigurationManager();
YamlConfiguration configuration = configurationManager.get("config.yml");
List<String> disabledWorldList = configuration.getStringList("disabled-world-list");
boolean inverted = configuration.getBoolean("disabled-world-list-inverted");
String worldName = world.getName();
boolean contains = disabledWorldList.contains(worldName);
return (inverted != contains);
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class CombatLogCommand method isWorldDisabled.
protected final boolean isWorldDisabled(World world) {
ICombatLogX plugin = getCombatLogX();
ConfigurationManager configurationManager = plugin.getConfigurationManager();
YamlConfiguration configuration = configurationManager.get("config.yml");
List<String> disabledWorldList = configuration.getStringList("disabled-world-list");
boolean inverted = configuration.getBoolean("disabled-world-list-inverted");
String worldName = world.getName();
boolean contains = disabledWorldList.contains(worldName);
return (inverted != contains);
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class ActionBarExpansion method onLoad.
@Override
public void onLoad() {
ConfigurationManager configurationManager = getConfigurationManager();
configurationManager.saveDefault("config.yml");
}
Aggregations