diff --git a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java index a575b634..4c03bfb2 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/DownstreamBridge.java @@ -381,6 +381,25 @@ public class DownstreamBridge extends PacketHandler out.writeInt( 0 ); } } + if ( subChannel.equals( "IPOther" ) ) + { + ProxiedPlayer player = bungee.getPlayer( in.readUTF() ); + if ( player != null ) + { + out.writeUTF( "IPOther" ); + out.writeUTF( player.getName() ); + if ( player.getSocketAddress() instanceof InetSocketAddress ) + { + InetSocketAddress address = (InetSocketAddress) player.getSocketAddress(); + out.writeUTF( address.getHostString() ); + out.writeInt( address.getPort() ); + } else + { + out.writeUTF( "unix://" + ( (DomainSocketAddress) player.getSocketAddress() ).path() ); + out.writeInt( 0 ); + } + } + } if ( subChannel.equals( "PlayerCount" ) ) { String target = in.readUTF();