From d85400bc69a6eacf19e8a3259bc6848fb77cdccc Mon Sep 17 00:00:00 2001 From: Jonas Konrad Date: Wed, 23 Jul 2014 17:00:03 +0200 Subject: [PATCH] Add forward parameter to only forward to online servers [Adds #1120] --- .../net/md_5/bungee/connection/DownstreamBridge.java | 9 +++++++++ 1 file changed, 9 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 858e7f97..aca6b9b6 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 @@ -258,6 +258,15 @@ public class DownstreamBridge extends PacketHandler server.sendData( "BungeeCord", payload ); } } + } else if ( target.equals( "ONLINE" ) ) + { + for ( ServerInfo server : bungee.getServers().values() ) + { + if ( server != con.getServer().getInfo() ) + { + server.sendData( "BungeeCord", payload, false ); + } + } } else { ServerInfo server = bungee.getServerInfo( target );