use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class DeathEffectsExpansion 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 DeathEffectsExpansion 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 MythicMobsExpansion 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 ListenerPreciousStones method beforeFieldCreation.
@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)
public void beforeFieldCreation(FieldPreCreationEvent e) {
Player player = e.getPlayer();
if (!isInCombat(player))
return;
ConfigurationManager configurationManager = getExpansionConfigurationManager();
YamlConfiguration configuration = configurationManager.get("config.yml");
if (!configuration.getBoolean("prevent-field-creation"))
return;
e.setCancelled(true);
LanguageManager languageManager = getLanguageManager();
languageManager.sendMessage(player, "expansion.region-protection.preciousstones.prevent-field-creation", null, true);
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class ListenerHuskSync method onPunish.
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onPunish(PlayerPunishEvent event) {
ConfigurationManager configurationManager = getPluginConfigurationManager();
YamlConfiguration configuration = configurationManager.get("punish.yml");
String killOptionString = configuration.getString("kill-time");
if (!(killOptionString == null || killOptionString.equals("QUIT"))) {
return;
}
UUID playerId = event.getPlayer().getUniqueId();
this.punishedPlayers.add(playerId);
}
Aggregations