Fixed shop lore

This commit is contained in:
Niels Vergucht 2018-12-07 14:32:26 +01:00
parent bb90fd599b
commit f82418ab06

View File

@ -47,8 +47,8 @@ public class InventoryHelper {
List<String> newLore = new ArrayList<>();
lore.forEach(s -> {
String line = s;
if (line.contains("%price%")) line.replace("%price%", subShop.getPrice() + "");
if (line.contains("%material%")) line.replace("%material%", subShop.getType().parseMaterial().name());
if (line.contains("%price%")) line = line.replace("%price%", subShop.getPrice() + "");
if (line.contains("%material%")) line = line.replace("%material%", subShop.getType().parseMaterial().name());
newLore.add(ChatColor.translateAlternateColorCodes('&', line));
});
im.setLore(newLore);