mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2025-01-10 09:47:42 +01:00
Fix for bank not allowing decimals in action all
This commit is contained in:
parent
60eb216b2b
commit
99f2fab2fc
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user