Send the correct username when connecting to a server (#2242)

This commit is contained in:
Virizion 2017-09-05 05:33:10 -04:00 committed by md-5
parent d7010d629d
commit ef326dba19

View File

@ -34,6 +34,7 @@ import net.md_5.bungee.protocol.packet.EncryptionRequest;
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.LoginRequest;
import net.md_5.bungee.protocol.packet.LoginSuccess;
import net.md_5.bungee.protocol.packet.PluginMessage;
import net.md_5.bungee.protocol.packet.Respawn;
@ -107,7 +108,7 @@ public class ServerConnector extends PacketHandler
channel.write( copiedHandshake );
channel.setProtocol( Protocol.LOGIN );
channel.write( user.getPendingConnection().getLoginRequest() );
channel.write( new LoginRequest( user.getName() ) );
}
@Override