Add ConnectOther channel for moving other players from a plugin

This commit is contained in:
md_5 2013-08-25 10:23:17 +10:00
parent 99f361ca77
commit d8c92cd311

View File

@ -244,6 +244,18 @@ public class DownstreamBridge extends PacketHandler
con.connect( server );
}
}
if ( subChannel.equals( "ConnectOther" ) )
{
ProxiedPlayer player = bungee.getPlayer( in.readUTF() );
if ( player != null )
{
ServerInfo server = bungee.getServerInfo( in.readUTF() );
if ( server != null )
{
player.connect( server );
}
}
}
if ( subChannel.equals( "IP" ) )
{
out.writeUTF( "IP" );