ServerControl¶
Graceful server shutdown and restart with configurable countdown delays, multi-channel broadcasts (chat, title, action bar, boss bar), custom kick message, and restart script execution.
Summary¶
- Plugin:
ZellysNexus - Configuration file:
modules/servercontrol/config.yml - Default
enabledstate:false - Commands:
/zn servercontrol [menu|stop [seconds] [reason]|restart [seconds] [reason]|cancel|status] - Permissions:
zn.admin.owner/zn.servercontrol.admin(operators) - Interfaces (Menus / Dialogs / Bedrock Forms): Paper Dialog server control launcher (
/zn servercontrol). - Storage:
modules/servercontrol/config.yml
Limits and verification status¶
Starts disabled (enabled: false). If restart-script (start.sh) is missing, /zn servercontrol restart falls back to a clean server stop.
Configuration keys (modules/servercontrol/config.yml)¶
| Key | Type | Default | Description |
|---|---|---|---|
enabled |
boolean |
false |
Module switch; requires a restart |
default-delay-seconds |
integer |
30 |
Default countdown delay before stopping or restarting |
broadcast.chat |
boolean |
true |
Broadcast countdown notifications to public chat |
broadcast.title |
boolean |
true |
Display title and subtitle countdown alerts |
broadcast.actionbar |
boolean |
true |
Send action bar ticker alerts |
broadcast.bossbar |
boolean |
true |
Render countdown progress on a boss bar |
kick-message |
string |
<red>Server is stopping or restarting.<newline><gray>Please rejoin shortly. |
Kick reason sent to players on server shutdown/restart |
restart-script |
string |
start.sh |
Shell script name executed when /zn servercontrol restart triggers; falls back to stop if missing |