From 6e3adfbf5e905f6c35da82186139ef6a98b98465 Mon Sep 17 00:00:00 2001 From: Mats Auraot <10709682+Mindgamesnl@users.noreply.github.com> Date: Sat, 8 Jun 2024 22:20:27 +0200 Subject: [PATCH] guess, not able to test cuz of a paywalled fork --- .../modules/player/listeners/PlayerConnectionListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/com/craftmend/openaudiomc/bungee/modules/player/listeners/PlayerConnectionListener.java b/plugin/src/main/java/com/craftmend/openaudiomc/bungee/modules/player/listeners/PlayerConnectionListener.java index d572d9395..6e24d365e 100644 --- a/plugin/src/main/java/com/craftmend/openaudiomc/bungee/modules/player/listeners/PlayerConnectionListener.java +++ b/plugin/src/main/java/com/craftmend/openaudiomc/bungee/modules/player/listeners/PlayerConnectionListener.java @@ -48,7 +48,7 @@ public void onLogout(PlayerDisconnectEvent event) { @EventHandler public void onConnect(ServerConnectedEvent event) { - new BungeeProxyNode(event.getPlayer().getServer().getInfo()).sendPacket(new AnnouncePlatformPacket( + new BungeeProxyNode(event.getServer().getInfo()).sendPacket(new AnnouncePlatformPacket( OpenAudioMc.getService(AuthenticationService.class).getServerKeySet().getPublicKey().getValue(), Platform.BUNGEE ));