mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2026-04-08 16:10:26 +00:00
Preserve the old sample
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user