mirror of
https://github.com/songoda/EpicBuckets.git
synced 2024-11-13 05:45:16 +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