Add forward parameter to only forward to online servers [Adds #1120]

This commit is contained in:
Jonas Konrad 2014-07-23 17:00:03 +02:00 committed by md_5
parent b544bb34cb
commit d85400bc69

View File

@ -258,6 +258,15 @@ public class DownstreamBridge extends PacketHandler
server.sendData( "BungeeCord", payload ); 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 } else
{ {
ServerInfo server = bungee.getServerInfo( target ); ServerInfo server = bungee.getServerInfo( target );