Add ServerIP subchannel

This commit is contained in:
vemacs 2014-04-18 10:12:34 -06:00
parent 6475385f87
commit 71c86f9f90

View File

@ -342,6 +342,13 @@ public class DownstreamBridge extends PacketHandler
out.writeUTF( player.getUUID() );
}
}
if ( subChannel.equals( "ServerIP" ) )
{
ServerInfo info = bungee.getServerInfo( in.readUTF() );
out.writeUTF( "ServerIP" );
out.writeUTF( info.getAddress().getAddress().getHostAddress() );
out.writeShort( info.getAddress().getPort() );
}
// Check we haven't set out to null, and we have written data, if so reply back back along the BungeeCord channel
if ( out != null )