Move protocol version declaration
This commit is contained in:
parent
775ffdc998
commit
f93b647df3
@ -5,6 +5,8 @@ import static net.md_5.bungee.protocol.PacketDefinitions.OpCode.*;
|
|||||||
public class PacketDefinitions
|
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 OpCode[][] opCodes = new OpCode[ 512 ][];
|
||||||
public static final int VANILLA_PROTOCOL = 0;
|
public static final int VANILLA_PROTOCOL = 0;
|
||||||
public static final int FORGE_PROTOCOL = 256;
|
public static final int FORGE_PROTOCOL = 256;
|
||||||
|
@ -56,6 +56,7 @@ import net.md_5.bungee.netty.PipelineUtils;
|
|||||||
import net.md_5.bungee.packet.DefinedPacket;
|
import net.md_5.bungee.packet.DefinedPacket;
|
||||||
import net.md_5.bungee.packet.Packet3Chat;
|
import net.md_5.bungee.packet.Packet3Chat;
|
||||||
import net.md_5.bungee.packet.PacketFAPluginMessage;
|
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.scheduler.BungeeThreadPool;
|
||||||
import net.md_5.bungee.util.CaseInsensitiveMap;
|
import net.md_5.bungee.util.CaseInsensitiveMap;
|
||||||
|
|
||||||
@ -65,14 +66,6 @@ import net.md_5.bungee.util.CaseInsensitiveMap;
|
|||||||
public class BungeeCord extends ProxyServer
|
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.
|
* Current operation state.
|
||||||
*/
|
*/
|
||||||
@ -446,13 +439,13 @@ public class BungeeCord extends ProxyServer
|
|||||||
@Override
|
@Override
|
||||||
public byte getProtocolVersion()
|
public byte getProtocolVersion()
|
||||||
{
|
{
|
||||||
return PROTOCOL_VERSION;
|
return PacketDefinitions.PROTOCOL_VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getGameVersion()
|
public String getGameVersion()
|
||||||
{
|
{
|
||||||
return GAME_VERSION;
|
return PacketDefinitions.GAME_VERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user