diff --git a/src/main/java/com/alttd/GUI/windows/BuyGUI.java b/src/main/java/com/alttd/GUI/windows/BuyGUI.java index 6d870ed..b9bf8ad 100644 --- a/src/main/java/com/alttd/GUI/windows/BuyGUI.java +++ b/src/main/java/com/alttd/GUI/windows/BuyGUI.java @@ -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) { diff --git a/src/main/java/com/alttd/GUI/windows/SellGUI.java b/src/main/java/com/alttd/GUI/windows/SellGUI.java index c208b1a..2d64427 100644 --- a/src/main/java/com/alttd/GUI/windows/SellGUI.java +++ b/src/main/java/com/alttd/GUI/windows/SellGUI.java @@ -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);