From 85544634b8eb5be594eef3e14447a5700eec67d0 Mon Sep 17 00:00:00 2001 From: Leandro Date: Sat, 3 Jul 2021 13:54:55 -0300 Subject: [PATCH] Bracket style fix. --- src/main/java/tsp/headdb/HeadDB.java | 3 +-- src/main/java/tsp/headdb/inventory/InventoryUtils.java | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) 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)); } }