Fix Vault CurrencyAmountEvent listener returning wrong balance

This commit is contained in:
Phoenix616 2019-09-06 13:31:19 +01:00
parent bc680afcaf
commit d51a512ab8

View File

@ -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?"); 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 @EventHandler