Show rounded price in info message

This commit is contained in:
Teriuihi 2022-09-02 03:56:49 +02:00
parent 1eaf51d6d1
commit d639367026

View File

@ -119,7 +119,7 @@ public class TransactionListener extends EventListener {
Placeholder.parsed("amount", "" + playerShop.getAmount()),
Placeholder.component("item", ShopUtil.itemNameComponent(playerShop.getItemStack())),
Placeholder.parsed("material", Util.capitalize(playerShop.getItemStack().getType().name())),
Placeholder.parsed("price", "" + playerShop.getPrice())
Placeholder.parsed("price", "" + ShopUtil.round(playerShop.getPrice()))
);
player.sendMiniMessage(MessageConfig.SHOP_INFO, placeholders);