use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class ListenerDamage method sendMessage.
private void sendMessage(Player player, DamageCause damageCause) {
ConfigurationManager configurationManager = getExpansionConfigurationManager();
YamlConfiguration configuration = configurationManager.get("config.yml");
if (configuration.getBoolean("all-damage")) {
sendMessageWithPrefix(player, "expansion.damage-tagger.unknown-damage", null, true);
return;
}
String damageCauseName = damageCause.name().toLowerCase();
String messagePath = ("expansion.damage-tagger.damage-type." + damageCauseName);
sendMessageWithPrefix(player, messagePath, null, true);
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class SuperVanishExpansion 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 SuperVanishExpansion method reloadConfig.
@Override
public void reloadConfig() {
ConfigurationManager configurationManager = getConfigurationManager();
configurationManager.reload("config.yml");
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class NewbieHelperExpansion method reloadConfig.
@Override
public void reloadConfig() {
ConfigurationManager configurationManager = getConfigurationManager();
configurationManager.reload("config.yml");
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class CommandTogglePVP method shouldCheckDisabledWorlds.
private boolean shouldCheckDisabledWorlds() {
NewbieHelperExpansion expansion = getExpansion();
ConfigurationManager configurationManager = expansion.getConfigurationManager();
YamlConfiguration configuration = configurationManager.get("config.yml");
return configuration.getBoolean("prevent-pvp-toggle-in-disabled-worlds");
}
Aggregations