It compiles

This commit is contained in:
md_5
2013-10-11 20:00:54 +11:00
parent 7be929bb08
commit d900417d95
24 changed files with 186 additions and 199 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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;