mirror of
https://github.com/songoda/EpicBuckets.git
synced 2024-11-14 06:17:09 +01:00
Fixed shop lore
This commit is contained in:
parent
bb90fd599b
commit
f82418ab06
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user