From 5dd3384b31c0dd2dbb91642a9a583dd59b8a06fe Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 12 Mar 2013 11:43:37 +1100 Subject: [PATCH] Add GetServer channel, see #145 --- .../java/net/md_5/bungee/connection/DownstreamBridge.java | 5 +++++ 1 file changed, 5 insertions(+) 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 b724b14a..16b8ab54 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 @@ -197,6 +197,11 @@ public class DownstreamBridge extends PacketHandler target.sendMessage( in.readUTF() ); } } + if ( subChannel.equals( "GetServer" ) ) + { + out.writeUTF( "GetServer" ); + out.writeUTF( server.getInfo().getName() ); + } // 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 )