Fix formatting in a bunch of files.

This commit is contained in:
md_5
2015-02-14 18:36:58 +11:00
parent 2055c98ebe
commit 61cee2d27c
14 changed files with 63 additions and 52 deletions

View File

@@ -10,6 +10,7 @@ import net.md_5.bungee.protocol.packet.Title.Action;
public class BungeeTitle implements Title
{
private net.md_5.bungee.protocol.packet.Title title, subtitle, times, clear, reset;
private static net.md_5.bungee.protocol.packet.Title createPacket(Action action)

View File

@@ -92,7 +92,7 @@ public class ServerConnector extends PacketHandler
}
copiedHandshake.setHost( newHost );
}
else if ( !user.getExtraDataInHandshake().isEmpty() )
else if ( !user.getExtraDataInHandshake().isEmpty() )
{
// Only restore the extra data if IP forwarding is off.
// TODO: Add support for this data with IP forwarding.

View File

@@ -520,7 +520,7 @@ public final class UserConnection implements ProxiedPlayer
}
@Override
public boolean isForgeUser()
public boolean isForgeUser()
{
return forgeClientHandler.isForgeUser();
}

View File

@@ -42,8 +42,8 @@ public class ForgeClientHandler
private PluginMessage serverIdList = null;
/**
* Gets or sets a value indicating whether the '\00FML\00' token was found in
* the handshake.
* Gets or sets a value indicating whether the '\00FML\00' token was found
* in the handshake.
*/
@Getter
@Setter
@@ -150,9 +150,9 @@ public class ForgeClientHandler
}
/**
* Returns whether we know if the user is a forge user.
* In FML 1.8, a "FML" token is included in the initial handshake.
* We can use that to determine if the user is a Forge 1.8 user.
* Returns whether we know if the user is a forge user. In FML 1.8, a "FML"
* token is included in the initial handshake. We can use that to determine
* if the user is a Forge 1.8 user.
*
* @return <code>true</code> if the user is a forge user.
*/

View File

@@ -77,15 +77,15 @@ public class Global extends TabList
{
props[ j ] = new String[]
{
loginResult.getProperties()[ j ].getName(),
loginResult.getProperties()[ j ].getValue(),
loginResult.getProperties()[ j ].getSignature()
loginResult.getProperties()[ j ].getName(),
loginResult.getProperties()[ j ].getValue(),
loginResult.getProperties()[ j ].getSignature()
};
}
item.setProperties( props );
} else
{
item.setProperties( new String[0][0] );
item.setProperties( new String[ 0 ][ 0 ] );
}
item.setGamemode( ( (UserConnection) p ).getGamemode() );
item.setPing( p.getPing() );
@@ -115,15 +115,16 @@ public class Global extends TabList
item.setUsername( player.getName() );
item.setDisplayName( ComponentSerializer.toString( TextComponent.fromLegacyText( player.getDisplayName() ) ) );
LoginResult loginResult = ( (UserConnection) player ).getPendingConnection().getLoginProfile();
if ( loginResult != null ) {
if ( loginResult != null )
{
String[][] props = new String[ loginResult.getProperties().length ][];
for ( int j = 0; j < props.length; j++ )
{
props[ j ] = new String[]
{
loginResult.getProperties()[ j ].getName(),
loginResult.getProperties()[ j ].getValue(),
loginResult.getProperties()[ j ].getSignature()
loginResult.getProperties()[ j ].getName(),
loginResult.getProperties()[ j ].getValue(),
loginResult.getProperties()[ j ].getSignature()
};
}
item.setProperties( props );

View File

@@ -43,9 +43,9 @@ public abstract class TabList
{
props[ i ] = new String[]
{
loginResult.getProperties()[ i ].getName(),
loginResult.getProperties()[ i ].getValue(),
loginResult.getProperties()[ i ].getSignature()
loginResult.getProperties()[ i ].getName(),
loginResult.getProperties()[ i ].getValue(),
loginResult.getProperties()[ i ].getSignature()
};
}
item.setProperties( props );