Implement UUID forwarding, you MUST update Spigot for this to work

This commit is contained in:
md_5 2013-12-24 10:10:11 +11:00
parent d0d0f4ec9f
commit 5ea4763ae9

View File

@ -77,7 +77,7 @@ public class ServerConnector extends PacketHandler
Handshake copiedHandshake = new Handshake( originalHandshake.getProtocolVersion(), originalHandshake.getHost(), originalHandshake.getPort(), 2 ); Handshake copiedHandshake = new Handshake( originalHandshake.getProtocolVersion(), originalHandshake.getHost(), originalHandshake.getPort(), 2 );
if ( BungeeCord.getInstance().config.isIpFoward() ) if ( BungeeCord.getInstance().config.isIpFoward() )
{ {
copiedHandshake.setHost( copiedHandshake.getHost() + "\00" + user.getAddress().getHostString() ); copiedHandshake.setHost( copiedHandshake.getHost() + "\00" + user.getAddress().getHostString() + "\00" + user.getUUID() );
} }
channel.write( copiedHandshake ); channel.write( copiedHandshake );