diff --git a/spigot/src/main/java/com/github/camotoy/geyserblockplatform/spigot/GeyserBlockPlatform.java b/spigot/src/main/java/com/github/camotoy/geyserblockplatform/spigot/GeyserBlockPlatform.java index ba85f1f..5f3d7a1 100644 --- a/spigot/src/main/java/com/github/camotoy/geyserblockplatform/spigot/GeyserBlockPlatform.java +++ b/spigot/src/main/java/com/github/camotoy/geyserblockplatform/spigot/GeyserBlockPlatform.java @@ -90,6 +90,9 @@ public void onDisable() { @EventHandler public void onPlayerJoin(PlayerJoinEvent event) { DeviceOS deviceOS = this.platformChecker.getBedrockPlatform(event.getPlayer().getUniqueId()); + if (deviceOS == null) { + return; + } if (!supportedDeviceOSList.contains(deviceOS)) { event.getPlayer().kickPlayer("This server cannot be joined with your Bedrock platform!"); }