Always use localized names for skills, vs just non-english

This commit is contained in:
Shane Freeder 2020-04-14 02:52:25 +01:00
parent 3c272a3e31
commit 3a4de97c9b
No known key found for this signature in database
GPG Key ID: A3F61EA5A085289C

View File

@ -235,7 +235,7 @@ public enum PrimarySkillType {
}
public String getName() {
return Config.getInstance().getLocale().equalsIgnoreCase("en_US") ? StringUtils.getCapitalized(this.toString()) : StringUtils.getCapitalized(LocaleLoader.getString(StringUtils.getCapitalized(this.toString()) + ".SkillName"));
return StringUtils.getCapitalized(LocaleLoader.getString(StringUtils.getCapitalized(this.toString()) + ".SkillName"));
}
public boolean getPermissions(Player player) {