From d51a512ab8929b5b14548e606db765e02fc421ec Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Fri, 6 Sep 2019 13:31:19 +0100 Subject: [PATCH] Fix Vault CurrencyAmountEvent listener returning wrong balance --- .../ChestShop/Listeners/Economy/Plugins/VaultListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/Acrobot/ChestShop/Listeners/Economy/Plugins/VaultListener.java b/src/main/java/com/Acrobot/ChestShop/Listeners/Economy/Plugins/VaultListener.java index 211d5576..6d0c1cbd 100644 --- a/src/main/java/com/Acrobot/ChestShop/Listeners/Economy/Plugins/VaultListener.java +++ b/src/main/java/com/Acrobot/ChestShop/Listeners/Economy/Plugins/VaultListener.java @@ -122,7 +122,7 @@ public class VaultListener extends EconomyAdapter { ChestShop.getBukkitLogger().log(Level.WARNING, "The server could not get the OfflinePlayer with the UUID " + event.getAccount() + " to check balance?"); } - event.setAmount(BigDecimal.ZERO); + event.setAmount(BigDecimal.valueOf(balance)); } @EventHandler