use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class CheatPreventionExpansion method onLoad.
@Override
public void onLoad() {
ConfigurationManager configurationManager = getConfigurationManager();
configurationManager.saveDefault("blocks.yml");
configurationManager.saveDefault("buckets.yml");
configurationManager.saveDefault("chat.yml");
configurationManager.saveDefault("commands.yml");
configurationManager.saveDefault("config.yml");
configurationManager.saveDefault("entities.yml");
configurationManager.saveDefault("flight.yml");
configurationManager.saveDefault("game-mode.yml");
configurationManager.saveDefault("inventories.yml");
configurationManager.saveDefault("items.yml");
configurationManager.saveDefault("potions.yml");
configurationManager.saveDefault("teleportation.yml");
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class ListenerBuckets method getConfiguration.
private YamlConfiguration getConfiguration() {
Expansion expansion = getExpansion();
ConfigurationManager configurationManager = expansion.getConfigurationManager();
return configurationManager.get("buckets.yml");
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class EntityHelper method isProjectileIgnored.
private static boolean isProjectileIgnored(ICombatLogX plugin, Projectile projectile) {
if (projectile == null) {
return true;
}
ConfigurationManager configurationManager = plugin.getConfigurationManager();
YamlConfiguration configuration = configurationManager.get("config.yml");
List<String> ignoredProjectileTypeList = configuration.getStringList("ignored-projectiles");
if (ignoredProjectileTypeList.isEmpty()) {
return false;
}
EntityType projectileType = projectile.getType();
String projectileTypeName = projectileType.name();
return ignoredProjectileTypeList.contains(projectileTypeName);
}
use of com.github.sirblobman.api.configuration.ConfigurationManager in project CombatLogX by SirBlobman.
the class ActionBarExpansion 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 ActionBarUpdater method isGlobalEnabled.
private boolean isGlobalEnabled() {
ActionBarExpansion expansion = getExpansion();
ConfigurationManager configurationManager = expansion.getConfigurationManager();
YamlConfiguration configuration = configurationManager.get("config.yml");
return configuration.getBoolean("enabled", true);
}
Aggregations