2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-23 04:28:01 +00:00

Preserve the old sample

This commit is contained in:
Tux 2014-06-13 23:36:20 -04:00
parent 28104fee64
commit 511202044c

View File

@ -63,7 +63,7 @@ public class RedisBungeeListener implements Listener {
public void onPing(ProxyPingEvent event) { public void onPing(ProxyPingEvent event) {
ServerPing old = event.getResponse(); ServerPing old = event.getResponse();
ServerPing reply = new ServerPing(); ServerPing reply = new ServerPing();
reply.setPlayers(new ServerPing.Players(old.getPlayers().getMax(), plugin.getCount(), null)); reply.setPlayers(new ServerPing.Players(old.getPlayers().getMax(), plugin.getCount(), old.getPlayers().getSample()));
reply.setDescription(old.getDescription()); reply.setDescription(old.getDescription());
reply.setFavicon(old.getFaviconObject()); reply.setFavicon(old.getFaviconObject());
reply.setVersion(old.getVersion()); reply.setVersion(old.getVersion());