Reformat all code
This commit is contained in:
@@ -61,7 +61,7 @@ public class BungeeServerInfo extends ServerInfo
|
||||
{
|
||||
if ( future.isSuccess() )
|
||||
{
|
||||
future.channel().pipeline().get( HandlerBoss.class ).setHandler( new PingHandler( BungeeServerInfo.this, callback ) );
|
||||
future.channel().pipeline().get( HandlerBoss.class ).setHandler( new PingHandler( BungeeServerInfo.this, callback ) );
|
||||
} else
|
||||
{
|
||||
callback.done( null, future.cause() );
|
||||
|
@@ -93,7 +93,7 @@ public final class UserConnection implements ProxiedPlayer
|
||||
{
|
||||
Preconditions.checkArgument( name.length() <= 16, "Display name cannot be longer than 16 characters" );
|
||||
bungee.getTabListHandler().onDisconnect( this );
|
||||
displayName=name;
|
||||
displayName = name;
|
||||
bungee.getTabListHandler().onConnect( this );
|
||||
}
|
||||
|
||||
|
@@ -158,7 +158,7 @@ public class DownstreamBridge extends PacketHandler
|
||||
{
|
||||
t = con.serverSentScoreboard.getTeam( team.name );
|
||||
}
|
||||
|
||||
|
||||
if ( t != null )
|
||||
{
|
||||
if ( team.mode == 0 || team.mode == 2 )
|
||||
|
@@ -175,16 +175,16 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
{
|
||||
old.disconnect( "You are already connected to the server" );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
// fire login event
|
||||
LoginEvent event = new LoginEvent( InitialHandler.this );
|
||||
if ( bungee.getPluginManager().callEvent( event ).isCancelled() )
|
||||
{
|
||||
disconnect( event.getCancelReason() );
|
||||
}
|
||||
|
||||
|
||||
Cipher encrypt = EncryptionUtil.getCipher( Cipher.ENCRYPT_MODE, shared );
|
||||
Cipher decrypt = EncryptionUtil.getCipher( Cipher.DECRYPT_MODE, shared );
|
||||
ch.write( new PacketFCEncryptionResponse() );
|
||||
|
@@ -40,7 +40,7 @@ public class ServerUniqueTabList implements TabListHandler
|
||||
{
|
||||
for ( String username : usernames )
|
||||
{
|
||||
( (UserConnection) player ).sendPacket(new PacketC9PlayerListItem( username, false, 9999 ) );
|
||||
( (UserConnection) player ).sendPacket( new PacketC9PlayerListItem( username, false, 9999 ) );
|
||||
}
|
||||
usernames.clear();
|
||||
}
|
||||
|
Reference in New Issue
Block a user