mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-23 10:45:54 +01:00
'/is level' material name formatting
This commit is contained in:
parent
0c97942596
commit
1875ae6738
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user