Fixed above max level format

This commit is contained in:
Auxilor 2021-08-10 14:37:51 +01:00
parent fbc3a0418b
commit cf47b0a480

View File

@ -263,12 +263,12 @@ public class EnchantmentCache {
if (level > enchantment.getMaxLevel() && PLUGIN.getDisplayModule().getOptions().getMaxLevelOptions().isReformatAboveMaxLevel()) {
String color = PLUGIN.getDisplayModule().getOptions().getMaxLevelOptions().getAboveMaxLevelFormat();
if (color.contains("{}")) {
appendedName = color.replace("{}", name);
appendedName = color.replace("{}", appendedName);
} else {
appendedName = color + name;
appendedName = color + appendedName;
}
appendedName = StringUtils.format(name);
appendedName = StringUtils.format(appendedName);
}
return appendedName;
}