mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-09-30 22:57:32 +02:00
Fix checkstyle issues.
This commit is contained in:
parent
c5860b0265
commit
a5d2f83402
@ -71,8 +71,8 @@ import net.md_5.bungee.util.QuietException;
|
|||||||
public class InitialHandler extends PacketHandler implements PendingConnection
|
public class InitialHandler extends PacketHandler implements PendingConnection
|
||||||
{
|
{
|
||||||
|
|
||||||
private final static String MOJANG_SESSION_URL = System.getProperty("bungee.mojang.session.url",
|
private static final String MOJANG_SESSION_URL = System.getProperty( "bungee.mojang.session.url",
|
||||||
"https://sessionserver.mojang.com/session/minecraft/hasJoined").concat("?username=%s&serverId=%s");
|
"https://sessionserver.mojang.com/session/minecraft/hasJoined" ).concat( "?username=%s&serverId=%s" );
|
||||||
private final BungeeCord bungee;
|
private final BungeeCord bungee;
|
||||||
private ChannelWrapper ch;
|
private ChannelWrapper ch;
|
||||||
@Getter
|
@Getter
|
||||||
@ -433,7 +433,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
String encodedHash = URLEncoder.encode( new BigInteger( sha.digest() ).toString( 16 ), "UTF-8" );
|
String encodedHash = URLEncoder.encode( new BigInteger( sha.digest() ).toString( 16 ), "UTF-8" );
|
||||||
|
|
||||||
String preventProxy = ( BungeeCord.getInstance().config.isPreventProxyConnections() && getSocketAddress() instanceof InetSocketAddress ) ? "&ip=" + URLEncoder.encode( getAddress().getAddress().getHostAddress(), "UTF-8" ) : "";
|
String preventProxy = ( BungeeCord.getInstance().config.isPreventProxyConnections() && getSocketAddress() instanceof InetSocketAddress ) ? "&ip=" + URLEncoder.encode( getAddress().getAddress().getHostAddress(), "UTF-8" ) : "";
|
||||||
String authURL = String.format(MOJANG_SESSION_URL, encName, encodedHash) + preventProxy;
|
String authURL = String.format( MOJANG_SESSION_URL, encName, encodedHash ) + preventProxy;
|
||||||
|
|
||||||
Callback<String> handler = new Callback<String>()
|
Callback<String> handler = new Callback<String>()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user