From a7c6edeb638f0a2ba4fb051f2b0be5a6e226c955 Mon Sep 17 00:00:00 2001 From: Zach Levis Date: Fri, 26 Feb 2021 11:28:05 +1100 Subject: [PATCH] #3041: Respond to login query requests in a way that matches the Vanilla client --- proxy/src/main/java/net/md_5/bungee/ServerConnector.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java index 15b2ba0d..fa2ceec5 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java @@ -41,6 +41,8 @@ import net.md_5.bungee.protocol.packet.GameState; import net.md_5.bungee.protocol.packet.Handshake; import net.md_5.bungee.protocol.packet.Kick; import net.md_5.bungee.protocol.packet.Login; +import net.md_5.bungee.protocol.packet.LoginPayloadRequest; +import net.md_5.bungee.protocol.packet.LoginPayloadResponse; import net.md_5.bungee.protocol.packet.LoginRequest; import net.md_5.bungee.protocol.packet.LoginSuccess; import net.md_5.bungee.protocol.packet.PluginMessage; @@ -406,6 +408,12 @@ public class ServerConnector extends PacketHandler user.unsafe().sendPacket( pluginMessage ); } + @Override + public void handle(LoginPayloadRequest loginPayloadRequest) + { + ch.write( new LoginPayloadResponse( loginPayloadRequest.getId(), null ) ); + } + @Override public String toString() {