From 7fec907ab840f560debb6f692845bd530792c09d Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 24 Jan 2013 14:51:10 +1100 Subject: [PATCH] Use the set ping event --- proxy/src/main/java/net/md_5/bungee/InitialHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/InitialHandler.java index 1c0d86ab..76291ca0 100644 --- a/proxy/src/main/java/net/md_5/bungee/InitialHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/InitialHandler.java @@ -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()