We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f091c39 commit fbe23b2Copy full SHA for fbe23b2
src/main/java/com/github/elic0de/thejpspit/hook/TneEconomyHook.java
@@ -23,6 +23,7 @@ public void onEnable() throws IllegalStateException {
23
}
24
25
public BigDecimal getBalance(@NotNull PitPlayer player) {
26
+ if (tneAPI.getAccount(player.getUniqueId()) == null) return BigDecimal.ZERO;
27
return tneAPI.getAccount(player.getUniqueId()).getHoldings(player.getPlayer().getWorld().getName());
28
29
0 commit comments