Hardcode MC versions

This commit is contained in:
md_5 2012-11-12 17:15:31 +11:00
parent a20e8951f6
commit 6b984e052d
3 changed files with 10 additions and 11 deletions

View File

@ -34,7 +34,14 @@ import net.md_5.bungee.tablist.TabListHandler;
*/
public class BungeeCord
{
/**
* Server protocol version.
*/
public static final int PROTOCOL_VERSION= 47;
/**
* Server game version.
*/
public static final String GAME_VERSION = "1.4.2";
/**
* Current software instance.
*/

View File

@ -54,14 +54,6 @@ public class Configuration
* Server ping motd.
*/
public String motd = "BungeeCord Proxy Instance";
/**
* Server protocol version.
*/
public int protcolVersion = 47;
/**
* Server game version.
*/
public String gameVersion = "1.4.2";
/**
* Name of default server.
*/

View File

@ -88,8 +88,8 @@ public class InitialHandler implements Runnable
}
Configuration conf = BungeeCord.instance.config;
String ping = (newPing) ? ChatColor.COLOR_CHAR + "1"
+ "\00" + conf.protcolVersion
+ "\00" + conf.gameVersion
+ "\00" + BungeeCord.PROTOCOL_VERSION
+ "\00" + BungeeCord.GAME_VERSION
+ "\00" + conf.motd
+ "\00" + BungeeCord.instance.connections.size()
+ "\00" + conf.maxPlayers