'/is level' material name formatting

This commit is contained in:
Esophose 2019-03-23 10:11:16 -06:00
parent 0c97942596
commit 1875ae6738

View File

@ -289,16 +289,14 @@ public class Levelling {
lore.replaceAll(x -> x.replace("%points", NumberUtil.formatNumberByDecimal(pointsEarned)) lore.replaceAll(x -> x.replace("%points", NumberUtil.formatNumberByDecimal(pointsEarned))
.replace("%blocks", NumberUtil.formatNumberByDecimal(materialAmount)) .replace("%blocks", NumberUtil.formatNumberByDecimal(materialAmount))
.replace("%material", .replace("%material",
WordUtils.capitalize(material.toLowerCase().replace("_", " ") WordUtils.capitalize(material.toLowerCase().replace("_", " ")).trim()));
.replace("item", "").replace("block", ""))));
nInv.addItem(nInv.createItem(is, configLoad nInv.addItem(nInv.createItem(is, configLoad
.getString("Menu.Levelling.Item.Material.Displayname") .getString("Menu.Levelling.Item.Material.Displayname")
.replace("%points", NumberUtil.formatNumberByDecimal(pointsEarned)) .replace("%points", NumberUtil.formatNumberByDecimal(pointsEarned))
.replace("%blocks", NumberUtil.formatNumberByDecimal(materialAmount)) .replace("%blocks", NumberUtil.formatNumberByDecimal(materialAmount))
.replace("%material", .replace("%material",
WordUtils.capitalize(material.toLowerCase().replace("_", " ") WordUtils.capitalize(material.toLowerCase().replace("_", " ")).trim()),
.replace("item", "").replace("block", ""))),
lore, null, null, null), inventorySlot); lore, null, null, null), inventorySlot);
} }
} }