Formatting & dependency updates
This commit is contained in:
parent
2ae8ba0afc
commit
da88d5c502
@ -35,7 +35,7 @@
|
||||
<dependency>
|
||||
<groupId>net.sf.jopt-simple</groupId>
|
||||
<artifactId>jopt-simple</artifactId>
|
||||
<version>4.8</version>
|
||||
<version>4.9</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
@ -46,7 +46,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.4</version>
|
||||
<version>3.0.2</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestEntries>
|
||||
@ -60,7 +60,7 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>2.1</version>
|
||||
<version>3.0.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
|
4
pom.xml
4
pom.xml
@ -87,8 +87,8 @@
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>findbugs</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<artifactId>findbugs-annotations</artifactId>
|
||||
<version>3.0.1</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
@ -87,7 +87,7 @@
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>5.1.42</version>
|
||||
<version>5.1.43</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
@ -255,7 +255,7 @@ public final class UserConnection implements ProxiedPlayer
|
||||
|
||||
if ( getServer() == null && !ch.isClosing() )
|
||||
{
|
||||
throw new IllegalStateException("Cancelled ServerConnectEvent with no server or disconnect.");
|
||||
throw new IllegalStateException( "Cancelled ServerConnectEvent with no server or disconnect." );
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ public class Configuration implements ProxyConfig
|
||||
throttle = adapter.getInt( "connection_throttle", throttle );
|
||||
ipForward = adapter.getBoolean( "ip_forward", ipForward );
|
||||
compressionThreshold = adapter.getInt( "network_compression_threshold", compressionThreshold );
|
||||
preventProxyConnections = adapter.getBoolean( "prevent_proxy_connections", preventProxyConnections);
|
||||
preventProxyConnections = adapter.getBoolean( "prevent_proxy_connections", preventProxyConnections );
|
||||
|
||||
disabledCommands = new CaseInsensitiveSet( (Collection<String>) adapter.getList( "disabled_commands", Arrays.asList( "disabledcommandhere" ) ) );
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
package net.md_5.bungee.connection;
|
||||
|
||||
import com.google.common.base.Objects;
|
||||
import com.google.common.base.Preconditions;
|
||||
import com.google.common.io.ByteArrayDataOutput;
|
||||
import com.google.common.io.ByteStreams;
|
||||
|
@ -562,7 +562,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return (name != null ) ? name : ( loginRequest == null ) ? null : loginRequest.getData();
|
||||
return ( name != null ) ? name : ( loginRequest == null ) ? null : loginRequest.getData();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -27,7 +27,7 @@ public class QueryHandler extends SimpleChannelInboundHandler<DatagramPacket>
|
||||
private final ListenerInfo listener;
|
||||
/*========================================================================*/
|
||||
private final Random random = new Random();
|
||||
private final Cache<InetAddress, QuerySession> sessions = CacheBuilder.newBuilder().expireAfterWrite( 30, TimeUnit.SECONDS).build();
|
||||
private final Cache<InetAddress, QuerySession> sessions = CacheBuilder.newBuilder().expireAfterWrite( 30, TimeUnit.SECONDS ).build();
|
||||
|
||||
private void writeShort(ByteBuf buf, int s)
|
||||
{
|
||||
@ -124,7 +124,7 @@ public class QueryHandler extends SimpleChannelInboundHandler<DatagramPacket>
|
||||
writeString( out, entry.getKey() );
|
||||
writeString( out, entry.getValue() );
|
||||
}
|
||||
out.writeByte( 0x00 ); // Null
|
||||
out.writeByte( 0x00 ); // Null
|
||||
|
||||
// Padding
|
||||
writeString( out, "\01player_\00" );
|
||||
|
Loading…
Reference in New Issue
Block a user