Add new plugin message sub-channels to get a players real UUID

This commit is contained in:
Keir Nellyer 2013-12-01 20:51:04 +00:00 committed by md_5
parent f7851b0436
commit af751dae5a

View File

@ -321,6 +321,21 @@ public class DownstreamBridge extends PacketHandler
out.writeUTF( "GetServer" );
out.writeUTF( server.getInfo().getName() );
}
if ( subChannel.equals( "UUID" ) )
{
out.writeUTF( "UUID" );
out.writeUTF( con.getUUID() );
}
if ( subChannel.equals("UUIDOther") )
{
ProxiedPlayer player = bungee.getPlayer( in.readUTF() );
if ( player != null )
{
out.writeUTF( "UUIDOther" );
out.writeUTF( player.getName() );
out.writeUTF( player.getUUID() );
}
}
// 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 )