mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-26 15:45:12 +01:00
Fixed above max level format
This commit is contained in:
parent
fbc3a0418b
commit
cf47b0a480
@ -263,12 +263,12 @@ public class EnchantmentCache {
|
|||||||
if (level > enchantment.getMaxLevel() && PLUGIN.getDisplayModule().getOptions().getMaxLevelOptions().isReformatAboveMaxLevel()) {
|
if (level > enchantment.getMaxLevel() && PLUGIN.getDisplayModule().getOptions().getMaxLevelOptions().isReformatAboveMaxLevel()) {
|
||||||
String color = PLUGIN.getDisplayModule().getOptions().getMaxLevelOptions().getAboveMaxLevelFormat();
|
String color = PLUGIN.getDisplayModule().getOptions().getMaxLevelOptions().getAboveMaxLevelFormat();
|
||||||
if (color.contains("{}")) {
|
if (color.contains("{}")) {
|
||||||
appendedName = color.replace("{}", name);
|
appendedName = color.replace("{}", appendedName);
|
||||||
} else {
|
} else {
|
||||||
appendedName = color + name;
|
appendedName = color + appendedName;
|
||||||
}
|
}
|
||||||
|
|
||||||
appendedName = StringUtils.format(name);
|
appendedName = StringUtils.format(appendedName);
|
||||||
}
|
}
|
||||||
return appendedName;
|
return appendedName;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user