Skip to content

Commit fbe23b2

Browse files
committed
fix tne null
1 parent f091c39 commit fbe23b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/github/elic0de/thejpspit/hook/TneEconomyHook.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public void onEnable() throws IllegalStateException {
2323
}
2424

2525
public BigDecimal getBalance(@NotNull PitPlayer player) {
26+
if (tneAPI.getAccount(player.getUniqueId()) == null) return BigDecimal.ZERO;
2627
return tneAPI.getAccount(player.getUniqueId()).getHoldings(player.getPlayer().getWorld().getName());
2728
}
2829

0 commit comments

Comments
 (0)