Use the set ping event

This commit is contained in:
md_5 2013-01-24 14:51:10 +11:00
parent 8797a29761
commit 7fec907ab8

View File

@ -108,7 +108,7 @@ public class InitialHandler implements Runnable, PendingConnection
ServerPing pingevent = new ServerPing(BungeeCord.PROTOCOL_VERSION, BungeeCord.GAME_VERSION,
listener.getMotd(), ProxyServer.getInstance().getPlayers().size(), listener.getMaxPlayers());
ProxyServer.getInstance().getPluginManager().callEvent(new ProxyPingEvent(this, pingevent));
pingevent = ProxyServer.getInstance().getPluginManager().callEvent(new ProxyPingEvent(this, pingevent)).getResponse();
String ping = (newPing) ? ChatColor.COLOR_CHAR + "1"
+ "\00" + pingevent.getProtocolVersion()