mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-30 14:13:47 +01:00
Procol -> Protocol. Fix typo, thanks @libraryaddict
This commit is contained in:
parent
3c961cd5d9
commit
703a393888
@ -11,7 +11,7 @@ import lombok.ToString;
|
||||
public class Packet2Handshake extends DefinedPacket
|
||||
{
|
||||
|
||||
private byte procolVersion;
|
||||
private byte protocolVersion;
|
||||
private String username;
|
||||
private String host;
|
||||
private int port;
|
||||
@ -24,7 +24,7 @@ public class Packet2Handshake extends DefinedPacket
|
||||
@Override
|
||||
public void read(ByteBuf buf)
|
||||
{
|
||||
procolVersion = buf.readByte();
|
||||
protocolVersion = buf.readByte();
|
||||
username = readString( buf );
|
||||
host = readString( buf );
|
||||
port = buf.readInt();
|
||||
@ -33,7 +33,7 @@ public class Packet2Handshake extends DefinedPacket
|
||||
@Override
|
||||
public void write(ByteBuf buf)
|
||||
{
|
||||
buf.writeByte( procolVersion );
|
||||
buf.writeByte( protocolVersion );
|
||||
writeString( username, buf );
|
||||
writeString( host, buf );
|
||||
buf.writeInt( port );
|
||||
|
@ -198,10 +198,10 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
this.vHost = new InetSocketAddress( handshake.getHost(), handshake.getPort() );
|
||||
bungee.getLogger().log( Level.INFO, "{0} has connected", this );
|
||||
|
||||
if ( handshake.getProcolVersion() > Vanilla.PROTOCOL_VERSION )
|
||||
if ( handshake.getProtocolVersion() > Vanilla.PROTOCOL_VERSION )
|
||||
{
|
||||
disconnect( bungee.getTranslation( "outdated_server" ) );
|
||||
} else if ( handshake.getProcolVersion() < Vanilla.PROTOCOL_VERSION )
|
||||
} else if ( handshake.getProtocolVersion() < Vanilla.PROTOCOL_VERSION )
|
||||
{
|
||||
disconnect( bungee.getTranslation( "outdated_client" ) );
|
||||
}
|
||||
@ -381,7 +381,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
||||
@Override
|
||||
public byte getVersion()
|
||||
{
|
||||
return ( handshake == null ) ? version : handshake.getProcolVersion();
|
||||
return ( handshake == null ) ? version : handshake.getProtocolVersion();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user