From 19abb9094e581bc4d21107e839901e5d68090b19 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Sun, 20 Aug 2023 02:13:55 -0400 Subject: [PATCH] fix #1062 --- .../proxy/connection/client/ClientPlaySessionHandler.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientPlaySessionHandler.java b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientPlaySessionHandler.java index dec1b85df..8993d9b24 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientPlaySessionHandler.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/connection/client/ClientPlaySessionHandler.java @@ -482,6 +482,14 @@ public class ClientPlaySessionHandler implements MinecraftSessionHandler { } serverBossBars.clear(); + // Tell the server about the proxy's plugin message channels. + ProtocolVersion serverVersion = serverMc.getProtocolVersion(); + final Collection channels = server.getChannelRegistrar() + .getChannelsForProtocol(serverMc.getProtocolVersion()); + if (!channels.isEmpty()) { + serverMc.delayedWrite(constructChannelsPacket(serverVersion, channels)); + } + // If we had plugin messages queued during login/FML handshake, send them now. PluginMessage pm; while ((pm = loginPluginMessages.poll()) != null) {