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
1 changed files with 1 additions and 6 deletions

View File

@ -329,13 +329,8 @@ public class RedisBungee extends Plugin implements Listener {
@EventHandler
public void onPing(ProxyPingEvent event) {
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();
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.setFavicon(old.getFavicon());
reply.setVersion(old.getVersion());