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

We don't need to send the sample at all, so omit it instead.

This commit is contained in:
Tux 2013-11-06 21:44:00 -05:00
parent c4ee103700
commit baec62873c

View File

@ -329,13 +329,8 @@ public class RedisBungee extends Plugin implements Listener {
@EventHandler @EventHandler
public void onPing(ProxyPingEvent event) { public void onPing(ProxyPingEvent event) {
ServerPing old = event.getResponse(); ServerPing old = event.getResponse();
List<ServerPing.PlayerInfo> players = new ArrayList<>();
for (String player : getPlayers()) {
// TODO: Find a better way of doing the UUIDs - right now I'm simply flunking it rather badly.
players.add(new ServerPing.PlayerInfo(player, "aaaa"));
}
ServerPing reply = new ServerPing(); ServerPing reply = new ServerPing();
reply.setPlayers(new ServerPing.Players(old.getPlayers().getMax(), players.size(), players.toArray(new ServerPing.PlayerInfo[players.size()]))); reply.setPlayers(new ServerPing.Players(old.getPlayers().getMax(), getCount(), new ServerPing.PlayerInfo[]{}));
reply.setDescription(old.getDescription()); reply.setDescription(old.getDescription());
reply.setFavicon(old.getFavicon()); reply.setFavicon(old.getFavicon());
reply.setVersion(old.getVersion()); reply.setVersion(old.getVersion());