Slightly more optimized getChannels
This commit is contained in:
parent
122987dd83
commit
80c22027de
@ -426,14 +426,7 @@ public class BungeeCord extends ProxyServer
|
|||||||
|
|
||||||
public PacketFAPluginMessage registerChannels()
|
public PacketFAPluginMessage registerChannels()
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
return new PacketFAPluginMessage( "REGISTER", Util.format( pluginChannels, "\00" ).getBytes() );
|
||||||
for ( String s : getChannels() )
|
|
||||||
{
|
|
||||||
sb.append( s );
|
|
||||||
sb.append( '\00' );
|
|
||||||
}
|
|
||||||
byte[] payload = sb.substring( 0, sb.length() - 1 ).getBytes();
|
|
||||||
return new PacketFAPluginMessage( "REGISTER", payload );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user