Black Friday Black Friday SALE: 40% off every resource until December 1. Shop the sale

Restarts and sleep hours

Restart every day, or stop the server at night and start it in the morning, with warnings for players.

On this page

Daily restart#

  1. Open Schedules and click Daily restart under Quick schedules.
  2. Fill in the fields and click Create.
Field What it does Default
Time When the server restarts, on a 24 hour clock 04:00
Days The days to restart. No days picked means every day. Every day
Message command The console command that sends a message to players. See Message command. Depends on the game
Warn players Warnings 15, 10, 5, 3 or 1 minutes before 15, 5 and 1
Commands right before Commands that run a few seconds before the restart, one per line save-all on Minecraft servers

The warnings start before the time you set, so the restart happens at that time. A warning reads Server restarts in 5 minutes. in your message command. The schedule only runs while the server is online.

Sleep hours#

Sleep hours stop the server at night and start it again in the morning.

  1. Open Schedules and click Sleep hours under Quick schedules.
  2. Fill in the fields and click Create.
Field What it does Default
Stop at When the server stops 01:00
Start again at When the server starts again 09:00
Days The nights to stop. No days picked means every day. Every day
Message command, Warn players, Commands right before As for a daily restart. A warning reads Server stops in 5 minutes. As above

This creates two schedules: Sleep from 01:00, which only runs while the server is online, and Wake up at 09:00, which runs while the server is off. When the start time is earlier in the day than the stop time, the server starts on the next day.

Message command#

Warnings, announcements and the backup notice are sent with a console command. {message} is replaced by the text. Without {message}, the text is added after the command.

The field is filled in for you:

Game Message command
ARK broadcast {message}
Minecraft, Rust and other Java servers say {message}
Other games Empty

Enter the command of your game yourself, or leave it empty to send no messages. With an empty message command, Warn players is hidden and the restart or stop happens at the set time without warnings.

Commands right before#

The commands run five seconds apart and end right before the restart or stop, such as save-all to save the world. They also run when you send no warnings.

Last updated

Still stuck? Open a ticket on the help page or ask in Discord. Mention your version and what you tried.

Complete your panel

Get the Pterodactyl v2 Bundle with:

$104.68 $139.58 Save 25%