Code format.
This commit is contained in:
@@ -163,7 +163,7 @@ public class EntityMap
|
||||
packet.readerIndex( readerIndex );
|
||||
packet.writerIndex( readerIndex + packetIdLength + idLength );
|
||||
DefinedPacket.writeString( player.getUniqueId().toString(), packet );
|
||||
DefinedPacket.writeString( username, packet);
|
||||
DefinedPacket.writeString( username, packet );
|
||||
DefinedPacket.writeVarInt( profile.getProperties().length, packet );
|
||||
for ( LoginResult.Property property : profile.getProperties() )
|
||||
{
|
||||
|
@@ -28,7 +28,7 @@ public class PlayerInfoSerializer implements JsonSerializer<ServerPing.PlayerInf
|
||||
JsonObject js = json.getAsJsonObject();
|
||||
ServerPing.PlayerInfo info = new ServerPing.PlayerInfo( js.get( "name" ).getAsString(), (UUID) null );
|
||||
String id = js.get( "id" ).getAsString();
|
||||
if ( protocol == 4 || !id.contains( "-" ))
|
||||
if ( protocol == 4 || !id.contains( "-" ) )
|
||||
{
|
||||
info.setId( id );
|
||||
} else
|
||||
|
@@ -5,7 +5,8 @@ import net.md_5.bungee.api.CommandSender;
|
||||
import net.md_5.bungee.api.plugin.Command;
|
||||
|
||||
/**
|
||||
* Command to terminate the proxy instance. May only be used by the console by default.
|
||||
* Command to terminate the proxy instance. May only be used by the console by
|
||||
* default.
|
||||
*/
|
||||
public class CommandEnd extends Command
|
||||
{
|
||||
|
@@ -20,7 +20,7 @@ public class CommandReload extends Command
|
||||
BungeeCord.getInstance().config.load();
|
||||
BungeeCord.getInstance().stopListeners();
|
||||
BungeeCord.getInstance().startListeners();
|
||||
BungeeCord.getInstance().getPluginManager().callEvent(new ProxyReloadEvent(sender));
|
||||
BungeeCord.getInstance().getPluginManager().callEvent( new ProxyReloadEvent( sender ) );
|
||||
|
||||
sender.sendMessage( ChatColor.BOLD.toString() + ChatColor.RED.toString() + "BungeeCord has been reloaded."
|
||||
+ " This is NOT advisable and you will not be supported with any issues that arise! Please restart BungeeCord ASAP." );
|
||||
|
@@ -172,7 +172,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
|
||||
if ( forced != null && listener.isPingPassthrough() )
|
||||
{
|
||||
((BungeeServerInfo) forced).ping( pingBack, handshake.getProtocolVersion() );
|
||||
( (BungeeServerInfo) forced ).ping( pingBack, handshake.getProtocolVersion() );
|
||||
} else
|
||||
{
|
||||
int protocol = ( Protocol.supportedVersions.contains( handshake.getProtocolVersion() ) ) ? handshake.getProtocolVersion() : -1;
|
||||
|
@@ -13,7 +13,8 @@ public class LoginResult
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
public static class Property {
|
||||
public static class Property
|
||||
{
|
||||
|
||||
private String name;
|
||||
private String value;
|
||||
|
Reference in New Issue
Block a user