From 5ea4763ae9fba2428f72313776cc6ed62a15fa4e Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 24 Dec 2013 10:10:11 +1100 Subject: [PATCH] Implement UUID forwarding, you MUST update Spigot for this to work --- proxy/src/main/java/net/md_5/bungee/ServerConnector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 0d317c93..b39082b1 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java @@ -77,7 +77,7 @@ public class ServerConnector extends PacketHandler Handshake copiedHandshake = new Handshake( originalHandshake.getProtocolVersion(), originalHandshake.getHost(), originalHandshake.getPort(), 2 ); 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 ); @@ -212,7 +212,7 @@ public class ServerConnector extends PacketHandler { def = null; } - ServerKickEvent event = bungee.getPluginManager().callEvent( new ServerKickEvent( user, ComponentSerializer.parse(kick.getMessage()), def, ServerKickEvent.State.CONNECTING ) ); + ServerKickEvent event = bungee.getPluginManager().callEvent( new ServerKickEvent( user, ComponentSerializer.parse( kick.getMessage() ), def, ServerKickEvent.State.CONNECTING ) ); if ( event.isCancelled() && event.getCancelServer() != null ) { user.connect( event.getCancelServer() );