Added more blocks to xray.yml

This commit is contained in:
Auxilor 2021-08-11 20:31:04 +01:00
parent cbc05c3b80
commit 403f772a37

View File

@ -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 {