Refactored util classes

This commit is contained in:
Auxilor
2020-09-02 19:57:49 +01:00
parent d76de144f3
commit 2134e27dfa
82 changed files with 394 additions and 450 deletions

View File

@@ -6,7 +6,7 @@ import com.willfp.ecoenchants.config.ConfigManager;
import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchants;
import com.willfp.ecoenchants.nms.Target;
import com.willfp.ecoenchants.util.Numeral;
import com.willfp.ecoenchants.util.NumberUtils;
import org.apache.commons.lang.WordUtils;
import org.bukkit.ChatColor;
import org.bukkit.NamespacedKey;
@@ -210,7 +210,7 @@ public class EnchantDisplay {
if(!(isMaxLevelOne || type == EcoEnchant.EnchantmentType.CURSE)) {
if (useNumerals && finalItem.getEnchantmentLevel(enchantment) < numbersThreshold) {
name += " " + Numeral.getNumeral(integer);
name += " " + NumberUtils.toNumeral(integer);
} else {
name += " " + integer;
}