From 2c9ba58d3142243b439dd83b254b1e6eba94d52c Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Sun, 5 Jul 2020 19:04:13 +0200 Subject: Add per-server announce setting --- minecctl/minecctl.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'minecctl') 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 : "); + } + info("│ │ announce_port : %" PRIu16, server->scfg.announce_port); info("│ │ idle_timeout : %u", server->scfg.idle_timeout); -- cgit v1.2.3