Formatting

This commit is contained in:
stjn 2021-11-10 15:08:54 +01:00
parent c9987795bc
commit 47405bdcb7
2 changed files with 5 additions and 7 deletions

View File

@ -36,8 +36,7 @@ public class BuyGUI extends GUIMerchant {
}
}
private void buy(VillagerType villagerType, Player player, Material material, int amount, Price price)
{
private void buy(VillagerType villagerType, Player player, Material material, int amount, Price price) {
Economy econ = VillagerUI.getEcon();
double balance = econ.getBalance(player);
double cost = price.getPrice(amount);
@ -52,9 +51,9 @@ public class BuyGUI extends GUIMerchant {
EconUser.users.get(player.getUniqueId())
.addPoints(villagerType.getName(), price.getPoints());
player.sendMessage(MiniMessage.get().parse(Config.PURCHASED_ITEM,
Template.of("amount", String.valueOf(amount)),
Template.of("item", material.toString()),
Template.of("price", String.valueOf(price))));
Template.of("amount", String.valueOf(amount)),
Template.of("item", material.toString()),
Template.of("price", String.valueOf(price))));
}
private ItemStack getPriceItem(double price) {

View File

@ -35,8 +35,7 @@ public class SellGUI extends GUIMerchant {
}
}
private void sell(VillagerType villagerType, Player player, Material material, int amount, Price price)
{
private void sell(VillagerType villagerType, Player player, Material material, int amount, Price price) {
Economy econ = VillagerUI.getEcon();
double cost = price.getPrice(amount);