mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-03 06:37:47 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
b141af1bcc
@ -1,5 +1,6 @@
|
||||
package net.Indyuce.mmoitems.skill;
|
||||
|
||||
import io.lumine.mythic.lib.UtilityMethods;
|
||||
import io.lumine.mythic.lib.skill.handler.SkillHandler;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@ -20,7 +21,7 @@ public class RegisteredSkill {
|
||||
|
||||
this.name = Objects.requireNonNull(config.getString("name"), "Could not fill skill name");
|
||||
for (String mod : handler.getModifiers()) {
|
||||
modifierNames.put(mod, Objects.requireNonNull(config.getString("modifier." + mod + ".name"), "Could not find translation for modifier '" + mod + "'"));
|
||||
modifierNames.put(mod, config.getString("modifier." + mod + ".name", UtilityMethods.caseOnWords(mod.replace("_", " ").replace("-", " ").toLowerCase())));
|
||||
modifierDefaultValues.put(mod, config.getDouble("modifier." + mod + ".default-value"));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user