Restart with announcement
Warn players before a restart: automatically for schedules, by hand with a countdown, and with the CitexRestart plugin.
4 min read
On this page
This guide covers Minecraft Java servers. You find the Restart with announcement card in the dashboard, on the server's Schedules tab.
Scheduled restarts
Every active schedule with the action Restart is announced automatically, starting 30 minutes ahead. You do not have to set anything up. Without the plugin, players see chat lines at 30, 15, 10, 5 and 1 minutes.
If you pause the schedule during that time, the announcement is taken back and players are told that the restart was cancelled.
If you do not want announcements for schedules at all, switch off Announce scheduled restarts on the card. The schedules then run silently. A countdown started by hand is always shown to the players.
Countdown by hand
- Enter the minutes under Restart in, from 1 to 1440.
- If you like, add a Reason, at most 80 characters, for example "maintenance" or "update".
- Click Start countdown and confirm.
Players see an announcement right away. When the time is up, the platform restarts the server.
- A countdown only works while the server is running.
- You end a running countdown with Cancel.
- Starting a new countdown replaces the old one.
- On shared servers, members need the Start and stop permission, see Sharing access.
You can check that it worked on the card: it shows Restart announced with the time and the time left.
CitexRestart plugin
The plugin makes the announcement easier to notice:
- a bar with the countdown (boss bar) from 30 minutes ahead,
- chat messages down to the second: at 60, 30, 15, 10, 5, 3, 2 and 1 minutes, then at 30, 10, 5, 4, 3, 2 and 1 seconds,
- a title and a sound in the last minute,
- at zero, players are disconnected with a friendly message.
Install
Turn on Install plugin on the card. This puts plugins/CitexRestart.jar and plugins/CitexRestart/platform.yml on the server. The plugin is loaded with the server's next restart. After that the card shows "Active (version …)".
The plugin runs on Paper and Purpur. Other Java servers, such as Folia, Fabric, Forge and Vanilla, get the plain chat lines. The plugin does not run on proxies and Bedrock servers either.
In-game commands
By default only OPs may use the commands. The permission is citexrestart.use.
| Command | What it does |
|---|---|
/autorestart <time> [reason] | announces a restart |
/autorestart cancel | cancels the countdown |
/autorestart status | shows whether a restart is pending |
/neustart works as an alias for /autorestart. Write the time as 10m, 90s or 1h. A number without a unit means minutes. Allowed are 30 seconds to 24 hours.
/autorestart 10m UpdateSettings
You configure the plugin in plugins/CitexRestart/config.yml:
| Entry | Meaning | Default |
|---|---|---|
language | language of the messages, de or en | de |
bossbar-minutes | how many minutes ahead the bar appears, 0 turns it off | 30 |
title | title in the last minute | true |
sound | sound in the last minute | true |
kick-players | disconnect players with a message at zero | true |
You edit the file in the file manager.
Who restarts the server?
The plugin never restarts the server itself. The platform always does it. That way the dashboard does not show the server as crashed.
Remove
Turn Install plugin off again. The jar file and the key are deleted. From the next restart on the plugin is no longer loaded; players then get the plain chat lines again.
Help
If no announcement arrives, or the card does not show the plugin as active after a restart, open a ticket with the name of the server.