Close #850 - send 127 for legacy protocol version

This commit is contained in:
md-5 2014-02-01 09:27:22 +11:00
parent 649f83dee2
commit 542d2c2a5b

View File

@ -135,7 +135,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
legacy = bungee.getPluginManager().callEvent( new ProxyPingEvent( this, legacy ) ).getResponse(); legacy = bungee.getPluginManager().callEvent( new ProxyPingEvent( this, legacy ) ).getResponse();
String kickMessage = ChatColor.DARK_BLUE String kickMessage = ChatColor.DARK_BLUE
+ "\00" + legacy.getVersion().getProtocol() + "\00" + 127
+ "\00" + legacy.getVersion().getName() + "\00" + legacy.getVersion().getName()
+ "\00" + legacy.getDescription() + "\00" + legacy.getDescription()
+ "\00" + legacy.getPlayers().getOnline() + "\00" + legacy.getPlayers().getOnline()