From 792af7b0ddcd178fdaf9c5e5413920d491c88529 Mon Sep 17 00:00:00 2001 From: Tim203 Date: Sun, 19 May 2024 00:10:17 +0200 Subject: [PATCH] Fixed bug in Bungee platform --- .../java/org/geysermc/floodgate/listener/BungeeListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bungee/src/main/java/org/geysermc/floodgate/listener/BungeeListener.java b/bungee/src/main/java/org/geysermc/floodgate/listener/BungeeListener.java index f7e4b6fd..fd1befb6 100644 --- a/bungee/src/main/java/org/geysermc/floodgate/listener/BungeeListener.java +++ b/bungee/src/main/java/org/geysermc/floodgate/listener/BungeeListener.java @@ -131,6 +131,9 @@ public void onLogin(LoginEvent event) { @EventHandler(priority = EventPriority.LOWEST) public void onPostLogin(PostLoginEvent event) { FloodgatePlayer player = api.getPlayer(event.getPlayer().getUniqueId()); + if (player == null) { + return; + } // Skin look up (on Spigot and friends) would result in it failing, so apply a default skin if (!player.isLinked()) {