use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class PunishManager method loadPunishments.
@Override
public void loadPunishments() {
this.punishCommandList.clear();
this.specialPunishmentList.clear();
ConfigurationManager configurationManager = this.plugin.getConfigurationManager();
YamlConfiguration configuration = configurationManager.get("commands.yml");
List<String> punishCommandList = configuration.getStringList("punish-command-list");
this.punishCommandList.addAll(punishCommandList);
if (configuration.getBoolean("special-punish-commands-enabled")) {
ConfigurationSection section = configuration.getConfigurationSection("special-punish-commands");
loadSpecialPunishments(section);
}
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class CombatNpcManager method printDebug.
private void printDebug(String message) {
ConfigurationManager pluginConfigurationManager = getCombatLogX().getConfigurationManager();
YamlConfiguration configuration = pluginConfigurationManager.get("config.yml");
if (!configuration.getBoolean("debug-mode"))
return;
Logger logger = getExpansion().getLogger();
logger.info("[Debug] " + message);
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class BossBarExpansion method onLoad.
@Override
public void onLoad() {
ConfigurationManager configurationManager = getConfigurationManager();
configurationManager.saveDefault("config.yml");
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class BossBarUpdater method isGlobalEnabled.
private boolean isGlobalEnabled() {
BossBarExpansion expansion = getExpansion();
ConfigurationManager configurationManager = expansion.getConfigurationManager();
YamlConfiguration configuration = configurationManager.get("config.yml");
return configuration.getBoolean("enabled", true);
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class CheatPreventionExpansion method reloadConfig.
@Override
public void reloadConfig() {
ConfigurationManager configurationManager = getConfigurationManager();
configurationManager.reload("blocks.yml");
configurationManager.reload("buckets.yml");
configurationManager.reload("chat.yml");
configurationManager.reload("commands.yml");
configurationManager.reload("config.yml");
configurationManager.reload("entities.yml");
configurationManager.reload("flight.yml");
configurationManager.reload("game-mode.yml");
configurationManager.reload("inventories.yml");
configurationManager.reload("items.yml");
configurationManager.reload("potions.yml");
configurationManager.reload("teleportation.yml");
}
Aggregations