summaryrefslogtreecommitdiff
path: root/minecctl
diff options
context:
space:
mode:
Diffstat (limited to 'minecctl')
-rw-r--r--minecctl/minecctl.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/minecctl/minecctl.c b/minecctl/minecctl.c
index 1752e25..dd4e9e8 100644
--- a/minecctl/minecctl.c
+++ b/minecctl/minecctl.c
@@ -47,6 +47,23 @@ static void dump_server(struct server *server)
}
info("│ │ pretty_name : %s", server->scfg.pretty_name);
+
+ switch (server->scfg.announce) {
+ case SERVER_ANNOUNCE_ALWAYS:
+ info("│ │ announce : always");
+ break;
+ case SERVER_ANNOUNCE_NEVER:
+ info("│ │ announce : never");
+ break;
+ case SERVER_ANNOUNCE_WHEN_RUNNING:
+ info("│ │ announce : when-running");
+ break;
+ case SERVER_ANNOUNCE_UNDEFINED:
+ _fallthrough_;
+ default:
+ info("│ │ announce : <undefined>");
+ }
+
info("│ │ announce_port : %" PRIu16, server->scfg.announce_port);
info("│ │ idle_timeout : %u", server->scfg.idle_timeout);