diff options
author | David Härdeman <david@hardeman.nu> | 2020-07-05 19:04:13 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-07-05 19:04:13 +0200 |
commit | 2c9ba58d3142243b439dd83b254b1e6eba94d52c (patch) | |
tree | 3bda6601ff665951b271f5989869e7aa23afc972 /minecctl | |
parent | 45af0d8c8603f037efe5f7bc1b1020b9cc42acdd (diff) |
Add per-server announce setting
Diffstat (limited to 'minecctl')
-rw-r--r-- | minecctl/minecctl.c | 17 |
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); |