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
1 changed files with 1 additions and 1 deletions

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?");
}
event.setAmount(BigDecimal.ZERO);
event.setAmount(BigDecimal.valueOf(balance));
}
@EventHandler