Show rounded price in info message

This commit is contained in:
Teriuihi 2022-09-02 03:56:49 +02:00 committed by Len
parent a4065ee41c
commit d0dc044ca9

View File

@ -121,7 +121,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);