Fix transaction output message
This commit is contained in:
@@ -173,8 +173,8 @@ public class TransactionListener extends EventListener {
|
||||
// TODO minimessage placeholders
|
||||
TagResolver placeholders = TagResolver.resolver(
|
||||
Placeholder.unparsed("ownername", shop.getOwnerName()),
|
||||
Placeholder.unparsed("price", shop.getPrice() * orders + ""),
|
||||
Placeholder.unparsed("amount", shop.getAmount() * orders + ""),
|
||||
Placeholder.unparsed("price", (player.isSneaking() ? shop.getPricePerItem() * shop.getItemStack().getMaxStackSize() : shop.getPrice()) + ""),
|
||||
Placeholder.unparsed("amount", (player.isSneaking() ? shop.getItemStack().getMaxStackSize() : shop.getAmount()) + ""),
|
||||
Placeholder.component("item", ShopUtil.itemNameComponent(shop.getItemStack())),
|
||||
Placeholder.unparsed("location", formatLocation(shop.getShopLocation()))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user