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).
This commit is contained in:
hyperring 2013-07-04 21:25:27 +10:00 committed by md_5
parent 66de4c95ef
commit b4101874cc

View File

@ -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();