#include "utils.h" #include "minecctl.h" #include "server.h" #include "misc-commands.h" #include "rcon-commands.h" #include "mc-commands.h" bool do_list(struct cfg *cfg) { struct server *server; /* server->filename check excludes servers created from cmdline */ list_for_each_entry(server, &cfg->servers, list) if (server->filename) info("%s", server->name); return true; } bool do_pcount(struct cfg *cfg) { unsigned x, y; if (do_rcon_pcount(cfg, &y, &x)) error("Rcon says %u/%u", y, x); if (do_mc_pcount(cfg, &y, &x)) error("MC says %u/%u", y, x); return true; }