#3041: Respond to login query requests in a way that matches the Vanilla client

This commit is contained in:
Zach Levis 2021-02-26 11:28:05 +11:00 committed by md_5
parent 4f23b49fef
commit a7c6edeb63
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -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.Handshake;
import net.md_5.bungee.protocol.packet.Kick; import net.md_5.bungee.protocol.packet.Kick;
import net.md_5.bungee.protocol.packet.Login; 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.LoginRequest;
import net.md_5.bungee.protocol.packet.LoginSuccess; import net.md_5.bungee.protocol.packet.LoginSuccess;
import net.md_5.bungee.protocol.packet.PluginMessage; import net.md_5.bungee.protocol.packet.PluginMessage;
@ -406,6 +408,12 @@ public class ServerConnector extends PacketHandler
user.unsafe().sendPacket( pluginMessage ); user.unsafe().sendPacket( pluginMessage );
} }
@Override
public void handle(LoginPayloadRequest loginPayloadRequest)
{
ch.write( new LoginPayloadResponse( loginPayloadRequest.getId(), null ) );
}
@Override @Override
public String toString() public String toString()
{ {