diff --git a/src/main/java/com/songoda/skyblock/gui/bank/GuiBankSelector.java b/src/main/java/com/songoda/skyblock/gui/bank/GuiBankSelector.java index 28503c85..f9f4e779 100644 --- a/src/main/java/com/songoda/skyblock/gui/bank/GuiBankSelector.java +++ b/src/main/java/com/songoda/skyblock/gui/bank/GuiBankSelector.java @@ -90,10 +90,16 @@ public class GuiBankSelector extends Gui { switch(type){ case DEPOSIT: amount = EconomyManager.getBalance(event.player); + if (!plugin.getFileManager().getConfig(new File(plugin.getDataFolder(), "config.yml")).getFileConfiguration().getBoolean("Island.Bank.AllowDecimals")) { + amount = Math.floor(amount); + } response = bankManager.deposit(event.player, island, amount, admin); break; case WITHDRAW: amount = island.getBankBalance(); + if (!plugin.getFileManager().getConfig(new File(plugin.getDataFolder(), "config.yml")).getFileConfiguration().getBoolean("Island.Bank.AllowDecimals")) { + amount = Math.floor(amount); + } response = bankManager.withdraw(event.player, island, amount, admin); break; default: