Better format for profession exp placeholder

This commit is contained in:
Indyuce 2022-08-19 16:02:50 +02:00
parent a498c43bf4
commit 9eb9abc6e4

View File

@ -109,7 +109,7 @@ public class RPGPlaceholders extends PlaceholderExpansion {
} }
else if (identifier.startsWith("profession_experience_")) else if (identifier.startsWith("profession_experience_"))
return String.valueOf( return MythicLib.plugin.getMMOConfig().decimal.format(
playerData.getCollectionSkills().getExperience(identifier.substring(22).replace(" ", "-").replace("_", "-").toLowerCase())); playerData.getCollectionSkills().getExperience(identifier.substring(22).replace(" ", "-").replace("_", "-").toLowerCase()));
else if (identifier.startsWith("profession_next_level_")) else if (identifier.startsWith("profession_next_level_"))