Update amount of orders in messages
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() + ""),
|
||||
Placeholder.unparsed("amount", shop.getAmount() + ""),
|
||||
Placeholder.unparsed("price", shop.getPrice() * orders + ""),
|
||||
Placeholder.unparsed("amount", shop.getAmount() * orders + ""),
|
||||
Placeholder.component("item", ShopUtil.itemNameComponent(shop.getItemStack())),
|
||||
Placeholder.unparsed("location", formatLocation(shop.getShopLocation()))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user