mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2025-01-20 22:01:20 +01:00
Fix Vault CurrencyAmountEvent listener returning wrong balance
This commit is contained in:
parent
bc680afcaf
commit
d51a512ab8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user