9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-21 16:09:24 +00:00

Fixed config values and updated to use latest eco version

This commit is contained in:
Auxilor
2021-01-01 15:28:55 +00:00
parent 39e0056dcf
commit cebed9a4ed
3 changed files with 10 additions and 12 deletions

View File

@@ -7,7 +7,7 @@ plugins {
dependencies { dependencies {
implementation project(":eco-core").getSubprojects() implementation project(":eco-core").getSubprojects()
implementation 'com.willfp:eco:1.0.0' implementation 'com.willfp:eco:1.0.1'
} }
allprojects { allprojects {

View File

@@ -109,19 +109,19 @@ public class IllusionerOptions {
spawnSounds = new HashSet<>(); spawnSounds = new HashSet<>();
IllusionerConfigs.SOUNDS.getConfig().getConfigurationSection("spawn").getKeys(false).forEach(key -> { IllusionerConfigs.SOUNDS.getConfig().getConfigurationSection("spawn").getKeys(false).forEach(key -> {
Sound sound = Sound.valueOf(Configs.CONFIG.getString("spawn." + key + ".sound")); Sound sound = Sound.valueOf(IllusionerConfigs.SOUNDS.getString("spawn." + key + ".sound"));
boolean broadcast = Configs.CONFIG.getBool("spawn." + key + ".broadcast"); boolean broadcast = IllusionerConfigs.SOUNDS.getBool("spawn." + key + ".broadcast");
float volume = (float) Configs.CONFIG.getDouble("spawn." + key + ".volume"); float volume = (float) IllusionerConfigs.SOUNDS.getDouble("spawn." + key + ".volume");
float pitch = (float) Configs.CONFIG.getDouble("spawn." + key + ".pitch"); float pitch = (float) IllusionerConfigs.SOUNDS.getDouble("spawn." + key + ".pitch");
spawnSounds.add(new OptionedSound(sound, volume, pitch, broadcast)); spawnSounds.add(new OptionedSound(sound, volume, pitch, broadcast));
}); });
deathSounds = new HashSet<>(); deathSounds = new HashSet<>();
IllusionerConfigs.SOUNDS.getConfig().getConfigurationSection("death").getKeys(false).forEach(key -> { IllusionerConfigs.SOUNDS.getConfig().getConfigurationSection("death").getKeys(false).forEach(key -> {
Sound sound = Sound.valueOf(Configs.CONFIG.getString("death." + key + ".sound")); Sound sound = Sound.valueOf(IllusionerConfigs.SOUNDS.getString("death." + key + ".sound"));
boolean broadcast = Configs.CONFIG.getBool("death." + key + ".broadcast"); boolean broadcast = IllusionerConfigs.SOUNDS.getBool("death." + key + ".broadcast");
float volume = (float) Configs.CONFIG.getDouble("death." + key + ".volume"); float volume = (float) IllusionerConfigs.SOUNDS.getDouble("death." + key + ".volume");
float pitch = (float) Configs.CONFIG.getDouble("death." + key + ".pitch"); float pitch = (float) IllusionerConfigs.SOUNDS.getDouble("death." + key + ".pitch");
deathSounds.add(new OptionedSound(sound, volume, pitch, broadcast)); deathSounds.add(new OptionedSound(sound, volume, pitch, broadcast));
}); });
@@ -135,7 +135,7 @@ public class IllusionerOptions {
drops = new HashSet<>(); drops = new HashSet<>();
IllusionerConfigs.DROPS.getConfig().getKeys(false).forEach(key -> { IllusionerConfigs.DROPS.getConfig().getKeys(false).forEach(key -> {
ItemStack itemStack = Configs.CONFIG.getConfig().getItemStack(key); ItemStack itemStack = IllusionerConfigs.DROPS.getConfig().getItemStack(key);
drops.add(itemStack); drops.add(itemStack);
}); });
} }

View File

@@ -5,8 +5,6 @@ api-version: 1.15
authors: [Auxilor] authors: [Auxilor]
website: willfp.com website: willfp.com
load: STARTUP load: STARTUP
softdepend:
- PlaceholderAPI
commands: commands:
ilreload: ilreload: