mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-17 04:41:21 +01:00
Added more blocks to xray.yml
This commit is contained in:
parent
cbc05c3b80
commit
403f772a37
@ -259,7 +259,6 @@ public class EnchantmentCache {
|
||||
}
|
||||
|
||||
if (level > enchantment.getMaxLevel() && PLUGIN.getDisplayModule().getOptions().getMaxLevelOptions().isReformatAboveMaxLevel()) {
|
||||
String clone = rawName;
|
||||
if (PLUGIN.getDisplayModule().getOptions().getMaxLevelOptions().isNumbersOnly()) {
|
||||
String color = PLUGIN.getDisplayModule().getOptions().getMaxLevelOptions().getAboveMaxLevelFormat();
|
||||
if (color.contains("{}")) {
|
||||
@ -268,15 +267,15 @@ public class EnchantmentCache {
|
||||
numberString = color + numberString;
|
||||
}
|
||||
|
||||
return StringUtils.format(clone + numberString);
|
||||
return name + StringUtils.format(numberString);
|
||||
} else {
|
||||
String clone = rawName;
|
||||
String color = PLUGIN.getDisplayModule().getOptions().getMaxLevelOptions().getAboveMaxLevelFormat();
|
||||
if (color.contains("{}")) {
|
||||
clone = color.replace("{}", clone);
|
||||
} else {
|
||||
clone = color + clone;
|
||||
}
|
||||
|
||||
return StringUtils.format(clone + numberString);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user