mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-30 22:24:18 +01:00
Hardcode MC versions
This commit is contained in:
parent
a20e8951f6
commit
6b984e052d
@ -34,7 +34,14 @@ import net.md_5.bungee.tablist.TabListHandler;
|
|||||||
*/
|
*/
|
||||||
public class BungeeCord
|
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.
|
* Current software instance.
|
||||||
*/
|
*/
|
||||||
|
@ -54,14 +54,6 @@ public class Configuration
|
|||||||
* Server ping motd.
|
* Server ping motd.
|
||||||
*/
|
*/
|
||||||
public String motd = "BungeeCord Proxy Instance";
|
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.
|
* Name of default server.
|
||||||
*/
|
*/
|
||||||
|
@ -88,8 +88,8 @@ public class InitialHandler implements Runnable
|
|||||||
}
|
}
|
||||||
Configuration conf = BungeeCord.instance.config;
|
Configuration conf = BungeeCord.instance.config;
|
||||||
String ping = (newPing) ? ChatColor.COLOR_CHAR + "1"
|
String ping = (newPing) ? ChatColor.COLOR_CHAR + "1"
|
||||||
+ "\00" + conf.protcolVersion
|
+ "\00" + BungeeCord.PROTOCOL_VERSION
|
||||||
+ "\00" + conf.gameVersion
|
+ "\00" + BungeeCord.GAME_VERSION
|
||||||
+ "\00" + conf.motd
|
+ "\00" + conf.motd
|
||||||
+ "\00" + BungeeCord.instance.connections.size()
|
+ "\00" + BungeeCord.instance.connections.size()
|
||||||
+ "\00" + conf.maxPlayers
|
+ "\00" + conf.maxPlayers
|
||||||
|
Loading…
Reference in New Issue
Block a user