Code format + fix pom
This commit is contained in:
parent
e755573fb3
commit
f81bf8e7c5
@ -43,18 +43,18 @@ public interface PendingConnection extends Connection
|
|||||||
* @return the UUID
|
* @return the UUID
|
||||||
*/
|
*/
|
||||||
String getUUID();
|
String getUUID();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get this connection's online mode.
|
* Get this connection's online mode.
|
||||||
*
|
*
|
||||||
* @return the online mode
|
* @return the online mode
|
||||||
*/
|
*/
|
||||||
boolean isOnlineMode();
|
boolean isOnlineMode();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set this connection's online mode.
|
* Set this connection's online mode.
|
||||||
*
|
*
|
||||||
* @param onlineMode
|
* @param onlineMode
|
||||||
*/
|
*/
|
||||||
void setOnlineMode(boolean onlineMode);
|
void setOnlineMode(boolean onlineMode);
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,8 @@ import net.md_5.bungee.api.plugin.Cancellable;
|
|||||||
@Data
|
@Data
|
||||||
@ToString(callSuper = false)
|
@ToString(callSuper = false)
|
||||||
@EqualsAndHashCode(callSuper = false)
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class PreLoginEvent extends AsyncEvent<PreLoginEvent> implements Cancellable {
|
public class PreLoginEvent extends AsyncEvent<PreLoginEvent> implements Cancellable
|
||||||
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancelled state.
|
* Cancelled state.
|
||||||
@ -34,4 +35,4 @@ public class PreLoginEvent extends AsyncEvent<PreLoginEvent> implements Cancella
|
|||||||
super( done );
|
super( done );
|
||||||
this.connection = connection;
|
this.connection = connection;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,6 @@ package net.md_5.bungee.api.plugin;
|
|||||||
|
|
||||||
import net.md_5.bungee.api.CommandSender;
|
import net.md_5.bungee.api.CommandSender;
|
||||||
|
|
||||||
|
|
||||||
public interface TabExecutor
|
public interface TabExecutor
|
||||||
{
|
{
|
||||||
|
|
||||||
|
2
pom.xml
2
pom.xml
@ -19,7 +19,7 @@
|
|||||||
<url>https://github.com/SpigotMC/BungeeCord</url>
|
<url>https://github.com/SpigotMC/BungeeCord</url>
|
||||||
<inceptionYear>2012</inceptionYear>
|
<inceptionYear>2012</inceptionYear>
|
||||||
<organization>
|
<organization>
|
||||||
<name>Elastic Portal Suite</name>
|
<name>SpigotMC</name>
|
||||||
<url>https://github.com/SpigotMC</url>
|
<url>https://github.com/SpigotMC</url>
|
||||||
</organization>
|
</organization>
|
||||||
<licenses>
|
<licenses>
|
||||||
|
@ -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,
|
* INCLUDES a & so the first key/value pair MUST be included manually,
|
||||||
* e.g:</p>
|
* e.g:</p>
|
||||||
* <code>
|
* <code>
|
||||||
|
@ -264,7 +264,7 @@ public final class UserConnection implements ProxiedPlayer
|
|||||||
if ( ch.getHandle().isActive() )
|
if ( ch.getHandle().isActive() )
|
||||||
{
|
{
|
||||||
bungee.getLogger().log( Level.INFO, "[" + getName() + "] disconnected with: " + reason );
|
bungee.getLogger().log( Level.INFO, "[" + getName() + "] disconnected with: " + reason );
|
||||||
unsafe().sendPacket( new Kick(reason) );
|
unsafe().sendPacket( new Kick( reason ) );
|
||||||
ch.close();
|
ch.close();
|
||||||
if ( server != null )
|
if ( server != null )
|
||||||
{
|
{
|
||||||
|
@ -60,7 +60,7 @@ public class Configuration
|
|||||||
File fav = new File( "server-icon.png" );
|
File fav = new File( "server-icon.png" );
|
||||||
if ( fav.exists() )
|
if ( fav.exists() )
|
||||||
{
|
{
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
favicon = "data:image/png;base64," + BaseEncoding.base64().encode( Files.toByteArray( fav ) );
|
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;
|
thisState = State.ENCRYPT;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// fire pre login event
|
// fire pre login event
|
||||||
bungee.getPluginManager().callEvent( new PreLoginEvent( InitialHandler.this, callback ) );
|
bungee.getPluginManager().callEvent( new PreLoginEvent( InitialHandler.this, callback ) );
|
||||||
}
|
}
|
||||||
|
@ -13,10 +13,12 @@ public class ThrottleTest
|
|||||||
{
|
{
|
||||||
ConnectionThrottle throttle = new ConnectionThrottle( 5 );
|
ConnectionThrottle throttle = new ConnectionThrottle( 5 );
|
||||||
InetAddress address;
|
InetAddress address;
|
||||||
|
|
||||||
try {
|
try
|
||||||
|
{
|
||||||
address = InetAddress.getLocalHost();
|
address = InetAddress.getLocalHost();
|
||||||
} catch (UnknownHostException ex) {
|
} catch ( UnknownHostException ex )
|
||||||
|
{
|
||||||
address = InetAddress.getByName( null );
|
address = InetAddress.getByName( null );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user