use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class CustomScoreboardManager method isGlobalEnabled.
private boolean isGlobalEnabled() {
ScoreboardExpansion 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 CombatPlugin method saveConfig.
@Override
public void saveConfig(String fileName) {
ConfigurationManager configurationManager = getConfigurationManager();
configurationManager.save(fileName);
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class CombatPlugin method reloadConfig.
@Override
public void reloadConfig(String fileName) {
ConfigurationManager configurationManager = getConfigurationManager();
configurationManager.reload(fileName);
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class CombatPlugin method broadcastEnableMessage.
private void broadcastEnableMessage() {
ConfigurationManager configurationManager = getConfigurationManager();
YamlConfiguration configuration = configurationManager.get("config.yml");
if (!configuration.getBoolean("broadcast.on-enable")) {
return;
}
LanguageManager languageManager = getLanguageManager();
languageManager.broadcastMessage("broadcast.on-enable", null, true);
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class ListenerConfiguration method checkDeathUntag.
private void checkDeathUntag(Player player) {
ConfigurationManager configurationManager = getPluginConfigurationManager();
YamlConfiguration configuration = configurationManager.get("config.yml");
if (!configuration.getBoolean("untag-on-death"))
return;
ICombatManager combatManager = getCombatManager();
if (combatManager.isInCombat(player)) {
combatManager.untag(player, UntagReason.SELF_DEATH);
}
}
Aggregations