Make Bedrock check nullsafe

If the UUID was not set by FloodGate or any other plugin, it's null
by in BungeeCord

Fixes #548
This commit is contained in:
games647
2021-06-15 10:31:53 +02:00
parent 01c9b55d80
commit baede33abc

View File

@ -217,9 +217,11 @@ public class ConnectListener implements Listener {
// Floodgate will set a correct UUID at the beginning of the PreLoginEvent
// and will cancel the online mode login for those players
// Therefore we just ignore those
if (floodgateHook == null) {
if (floodgateHook == null || correctedUUID == null) {
// Also ignore if not set by floodgate or any other plugin
return false;
}
return this.floodgateHook.isBedrockPlayer(correctedUUID);
}
}