diff --git a/src/main/java/tsp/headdb/HeadDB.java b/src/main/java/tsp/headdb/HeadDB.java index f8c7035..4583da3 100644 --- a/src/main/java/tsp/headdb/HeadDB.java +++ b/src/main/java/tsp/headdb/HeadDB.java @@ -31,8 +31,7 @@ public class HeadDB extends JavaPlugin { config = LightningBuilder.fromPath("config.yml", "plugins/HeadDB").createConfig().addDefaultsFromInputStream(); playerdata = LightningBuilder.fromPath("playerdata.json", "plugins/HeadDB").createJson(); - if (config.getBoolean("economy.enable")) - { + if (config.getBoolean("economy.enable")) { Log.debug("Starting economy..."); this.economy = this.setupEconomy(); if (this.economy == null) { diff --git a/src/main/java/tsp/headdb/inventory/InventoryUtils.java b/src/main/java/tsp/headdb/inventory/InventoryUtils.java index 15a9c19..0fd1df8 100644 --- a/src/main/java/tsp/headdb/inventory/InventoryUtils.java +++ b/src/main/java/tsp/headdb/inventory/InventoryUtils.java @@ -226,9 +226,7 @@ public class InventoryUtils { player.sendMessage(String.format("You do not have enough %s to purchase %d x %s.", economy.currencyNamePlural(), amount, description)); return; } - } - else - { + } else { player.sendMessage(String.format("You purchased %d x %s for free!", amount, description)); } }