Code format + fix pom
This commit is contained in:
@@ -97,7 +97,8 @@ public class Metrics extends TimerTask
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>Encode a key/value data pair to be used in a HTTP post request. This
|
||||
* <p>
|
||||
* Encode a key/value data pair to be used in a HTTP post request. This
|
||||
* INCLUDES a & so the first key/value pair MUST be included manually,
|
||||
* e.g:</p>
|
||||
* <code>
|
||||
|
@@ -264,7 +264,7 @@ public final class UserConnection implements ProxiedPlayer
|
||||
if ( ch.getHandle().isActive() )
|
||||
{
|
||||
bungee.getLogger().log( Level.INFO, "[" + getName() + "] disconnected with: " + reason );
|
||||
unsafe().sendPacket( new Kick(reason) );
|
||||
unsafe().sendPacket( new Kick( reason ) );
|
||||
ch.close();
|
||||
if ( server != null )
|
||||
{
|
||||
|
@@ -60,7 +60,7 @@ public class Configuration
|
||||
File fav = new File( "server-icon.png" );
|
||||
if ( fav.exists() )
|
||||
{
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
favicon = "data:image/png;base64," + BaseEncoding.base64().encode( Files.toByteArray( fav ) );
|
||||
|
@@ -275,7 +275,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
thisState = State.ENCRYPT;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// fire pre login event
|
||||
bungee.getPluginManager().callEvent( new PreLoginEvent( InitialHandler.this, callback ) );
|
||||
}
|
||||
|
@@ -13,10 +13,12 @@ public class ThrottleTest
|
||||
{
|
||||
ConnectionThrottle throttle = new ConnectionThrottle( 5 );
|
||||
InetAddress address;
|
||||
|
||||
try {
|
||||
|
||||
try
|
||||
{
|
||||
address = InetAddress.getLocalHost();
|
||||
} catch (UnknownHostException ex) {
|
||||
} catch ( UnknownHostException ex )
|
||||
{
|
||||
address = InetAddress.getByName( null );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user