It compiles
This commit is contained in:
@@ -180,7 +180,7 @@ public abstract class ProxyServer
|
||||
*
|
||||
* @return the Minecraft protocol version
|
||||
*/
|
||||
public abstract byte getProtocolVersion();
|
||||
public abstract int getProtocolVersion();
|
||||
|
||||
/**
|
||||
* Factory method to construct an implementation specific server info
|
||||
|
@@ -21,7 +21,7 @@ public interface PendingConnection extends Connection
|
||||
*
|
||||
* @return the protocol version of the remote client
|
||||
*/
|
||||
byte getVersion();
|
||||
int getVersion();
|
||||
|
||||
/**
|
||||
* Get the requested virtual host that the client tried to connect to.
|
||||
|
@@ -6,6 +6,7 @@ import lombok.ToString;
|
||||
import net.md_5.bungee.api.connection.PendingConnection;
|
||||
import net.md_5.bungee.protocol.packet.Packet2Handshake;
|
||||
import net.md_5.bungee.api.plugin.Event;
|
||||
import net.md_5.bungee.protocol.packet.Handshake;
|
||||
|
||||
/**
|
||||
* Event called to represent a player first making their presence and username
|
||||
@@ -24,9 +25,9 @@ public class PlayerHandshakeEvent extends Event
|
||||
/**
|
||||
* The handshake.
|
||||
*/
|
||||
private final Packet2Handshake handshake;
|
||||
private final Handshake handshake;
|
||||
|
||||
public PlayerHandshakeEvent(PendingConnection connection, Packet2Handshake handshake)
|
||||
public PlayerHandshakeEvent(PendingConnection connection, Handshake handshake)
|
||||
{
|
||||
this.connection = connection;
|
||||
this.handshake = handshake;
|
||||
|
Reference in New Issue
Block a user