From 1875ae67388aea8d0c32a4f3b2bb9a212e306e1d Mon Sep 17 00:00:00 2001 From: Esophose Date: Sat, 23 Mar 2019 10:11:16 -0600 Subject: [PATCH] '/is level' material name formatting --- src/main/java/me/goodandevil/skyblock/menus/Levelling.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/goodandevil/skyblock/menus/Levelling.java b/src/main/java/me/goodandevil/skyblock/menus/Levelling.java index a96432e8..93a5e2fd 100644 --- a/src/main/java/me/goodandevil/skyblock/menus/Levelling.java +++ b/src/main/java/me/goodandevil/skyblock/menus/Levelling.java @@ -289,16 +289,14 @@ public class Levelling { lore.replaceAll(x -> x.replace("%points", NumberUtil.formatNumberByDecimal(pointsEarned)) .replace("%blocks", NumberUtil.formatNumberByDecimal(materialAmount)) .replace("%material", - WordUtils.capitalize(material.toLowerCase().replace("_", " ") - .replace("item", "").replace("block", "")))); + WordUtils.capitalize(material.toLowerCase().replace("_", " ")).trim())); nInv.addItem(nInv.createItem(is, configLoad .getString("Menu.Levelling.Item.Material.Displayname") .replace("%points", NumberUtil.formatNumberByDecimal(pointsEarned)) .replace("%blocks", NumberUtil.formatNumberByDecimal(materialAmount)) .replace("%material", - WordUtils.capitalize(material.toLowerCase().replace("_", " ") - .replace("item", "").replace("block", ""))), + WordUtils.capitalize(material.toLowerCase().replace("_", " ")).trim()), lore, null, null, null), inventorySlot); } }