Restart or stop the server
restart_serverSchedule a server restart or stop with in-chat countdown warnings; saves all worlds and players before shutdown and disconnects online players.
Instructions
restart or stop after a countdown in chat: players see warnings at set marks, then every world and player is saved and the server shuts down. What runs the server decides what comes next: Docker's restart policy or a start script loop starts it again (and then a stop is a restart too); otherwise it stays off. One restart or stop is pending at a time, and scheduling replaces it; cancel calls it off, status tells whether one is pending. Needs server:control. Everyone online gets disconnected, so confirm with the user first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | restart | |
| message | No | Said with each warning, such as the reason | |
| countdownSeconds | No |