mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-21 05:50:18 +08:00
Prevented null playerUUID from executing code
Affects issues: - Fixed #1307
This commit is contained in:
parent
380c98e8e6
commit
5d457223f8
@ -211,6 +211,8 @@ public class PlayerOnlineListener implements Listener {
|
||||
Player player = event.getPlayer();
|
||||
String playerName = player.getName();
|
||||
UUID playerUUID = player.getUniqueId();
|
||||
if (playerUUID == null) return; // Can be null when player is not signed in to xbox live
|
||||
|
||||
UUID serverUUID = serverInfo.getServerUUID();
|
||||
JSONCache.invalidate(DataID.SERVER_OVERVIEW, serverUUID);
|
||||
JSONCache.invalidate(DataID.GRAPH_PERFORMANCE, serverUUID);
|
||||
|
Loading…
Reference in New Issue
Block a user