From b4101874cc8e5aefae883215342067790f20982a Mon Sep 17 00:00:00 2001 From: hyperring Date: Thu, 4 Jul 2013 21:25:27 +1000 Subject: [PATCH] Fixed forced_hosts MOTD Noticed a tiny bug in creating a ServerPing response. The response was still using the old listener.getMotd() when it should be using the new motd variable (to take advantage of the new forced_hosts MOTD methods). --- .../main/java/net/md_5/bungee/connection/InitialHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java index a02fb01f3..21e258d54 100644 --- a/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java +++ b/proxy/src/main/java/net/md_5/bungee/connection/InitialHandler.java @@ -152,7 +152,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection } ServerPing response = new ServerPing( bungee.getProtocolVersion(), bungee.getGameVersion(), - listener.getMotd(), bungee.getOnlineCount(), listener.getMaxPlayers() ); + motd, bungee.getOnlineCount(), listener.getMaxPlayers() ); response = bungee.getPluginManager().callEvent( new ProxyPingEvent( InitialHandler.this, response ) ).getResponse();