Update amount of orders in messages

This commit is contained in:
Len 2023-08-12 12:31:09 +02:00
parent f12b80b280
commit 22e30ba949

View File

@ -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()))
);