From 97e6b0fb459d848335fcb537825dc691f2ab0134 Mon Sep 17 00:00:00 2001 From: ST3V1K Date: Sat, 22 Feb 2025 16:22:06 +0100 Subject: [PATCH] fix: problem with PluginMessageEvents for configuration phase --- .../proxy/connection/client/ClientConfigSessionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConfigSessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConfigSessionHandler.java index a4e734ed3e..a71434628c 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConfigSessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientConfigSessionHandler.java @@ -134,7 +134,7 @@ public boolean handle(final PluginMessagePacket packet) { ChannelIdentifier id = this.server.getChannelRegistrar().getFromId(packet.getChannel()); if (id == null) { - serverConn.getPlayer().getConnection().write(packet.retain()); + serverConn.ensureConnected().write(packet.retain()); return true; }