Move protocol version declaration

This commit is contained in:
md_5 2013-05-25 17:03:00 +10:00
parent 775ffdc998
commit f93b647df3
2 changed files with 5 additions and 10 deletions

View File

@ -5,6 +5,8 @@ import static net.md_5.bungee.protocol.PacketDefinitions.OpCode.*;
public class PacketDefinitions
{
public static final byte PROTOCOL_VERSION = 61;
public static final String GAME_VERSION = "1.5.2";
public static final OpCode[][] opCodes = new OpCode[ 512 ][];
public static final int VANILLA_PROTOCOL = 0;
public static final int FORGE_PROTOCOL = 256;

View File

@ -56,6 +56,7 @@ import net.md_5.bungee.netty.PipelineUtils;
import net.md_5.bungee.packet.DefinedPacket;
import net.md_5.bungee.packet.Packet3Chat;
import net.md_5.bungee.packet.PacketFAPluginMessage;
import net.md_5.bungee.protocol.PacketDefinitions;
import net.md_5.bungee.scheduler.BungeeThreadPool;
import net.md_5.bungee.util.CaseInsensitiveMap;
@ -65,14 +66,6 @@ import net.md_5.bungee.util.CaseInsensitiveMap;
public class BungeeCord extends ProxyServer
{
/**
* Server protocol version.
*/
public static final byte PROTOCOL_VERSION = 61;
/**
* Server game version.
*/
public static final String GAME_VERSION = "1.5.2";
/**
* Current operation state.
*/
@ -446,13 +439,13 @@ public class BungeeCord extends ProxyServer
@Override
public byte getProtocolVersion()
{
return PROTOCOL_VERSION;
return PacketDefinitions.PROTOCOL_VERSION;
}
@Override
public String getGameVersion()
{
return GAME_VERSION;
return PacketDefinitions.GAME_VERSION;
}
@Override