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:
parent
66de4c95ef
commit
b4101874cc
@ -152,7 +152,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
}
|
}
|
||||||
|
|
||||||
ServerPing response = new ServerPing( bungee.getProtocolVersion(), bungee.getGameVersion(),
|
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();
|
response = bungee.getPluginManager().callEvent( new ProxyPingEvent( InitialHandler.this, response ) ).getResponse();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user