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:
1 file changed
+3
-1
+3
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user