BedWars1058
BedWars1058 copied to clipboard
[BUG] Unnecessary Exception
Describe the bug
StatsManager Line 50 throws IllegalStateException
when player stats is null, which happens when they are dead or similar scenarios, a return
would make more sense.
The problem with this is that:
a) It spams console with unnecessary stack trace
b) Causes issues with ajLeaderboard as its constantly trying to update the placeholder
Expected behavior
Just return
so in the special cases like when the player is dead, it doesn't spam stack trace.