Lodehost logoLodehost

Performance and fixes

How to schedule an automatic restart on your Minecraft server

A restart at a quiet hour is the most common schedule on a Minecraft server. Players get a warning in chat, the server saves and stops, and a minute later it is back with a clean slate. Here is how to build that on the Schedules tab, what time the hour really means, and what else a schedule can do while you sleep.

6 min read

Configure your serverPick a plan and order your server.
A golden clock on a stone pedestal next to a small server block with a green restart arrow, under a crescent moon
Pick the hour once. From then on the server warns its players and restarts by itself.

Do you need to restart a Minecraft server every day?

Not strictly, but most servers are better off with it. A restart gives back memory that plugins and mods have built up, loads any jars and config files you changed during the day, and happens at a time you choose instead of during a busy evening. Once a day at a quiet hour is enough for most servers.

A restart does not cure lag that comes back within the hour. If the server is slow again soon after starting, the cause is in the world, a plugin or the settings, and find lag with spark shows where the time goes.

The quick way: Automatic restart on the Settings tab

On the Settings tab, under Automatic saves and restarts, switch on Automatic restart, choose Daily or Mondays and an hour, and save. The panel then saves the world with save-all flush and restarts the server a second later, only while the server is running. The hour is in UTC, like every schedule.

That restart comes without a message in chat. If your players should get a warning first, build the restart yourself on the Schedules tab as below, and leave Automatic restart off so the server does not restart twice.

Set up a nightly restart with a warning in chat

  1. Create the schedule

    Open the Schedules tab. Under New schedule, type a name such as Nightly restart, choose Every day under How often and an hour under At. The hour is in UTC, see the next section.

  2. Tick Only run when the server is online

    Then a server you stopped on purpose stays off. Without the tick, a Restart task also starts a server that was not running. Press Create.

  3. Add the warnings

    Press Add a task, choose Console command and type say Restarting in 5 minutes with 0 under Wait first (s). Add a second command, say Restarting in 1 minute, with a wait of 240.

  4. Add the restart

    Add a last task, Power action with Restart, and a wait of 60. The schedule now runs the three tasks in this order.

TaskWhatWait first (s)Runs at
1Console command say Restarting in 5 minutes004:00
2Console command say Restarting in 1 minute24004:04
3Power action Restart6004:05

Each wait counts from the task before it, and one wait can be at most 900 seconds, 15 minutes. A schedule holds up to 10 tasks. Commands go without the slash, just like in the console.

The restart works like the Restart button: the server gets its stop command first, which saves the world, and starts again once it is down. Players are disconnected and can join again as soon as the server is up.

Schedule times are in UTC

The hour you pick under At is UTC, the time zone without summer time. So the moment in your own clock moves by one hour when the clocks change, while the schedule itself stays put.

At (UTC)Germany and Poland, winterGermany and Poland, summerUnited Kingdom, winterUnited Kingdom, summer
03:0004:0005:0003:0004:00
04:0005:0006:0004:0005:00
05:0006:0007:0005:0006:00

Europe uses winter time from the last Sunday of October to the last Sunday of March. Players from other parts of the world have their quiet hour somewhere else, so look at when your own server is emptiest.

Test the schedule with Run now

Waiting until four in the morning to see whether it works is not needed. Press Run now on the schedule: it runs the tasks with their waits right away, so you see both messages in chat and then the restart. Do it at a moment when a restart does not bother anyone.

Pause stops a schedule without deleting it, for an event night when nobody should be kicked at five. Activate turns it back on.

Other things a schedule can do

GoalHow oftenTasks
A second backup before a weekly eventEvery week, on the event day, two hours beforeCreate a backup
A reminder in chatEvery hourConsole command say Claims are free: use a golden shovel
Twice-daily restart for a heavy modpackAdvanced, hour */12The same three tasks as the nightly restart
Start the server in the morningEvery dayPower action Start

We already make a backup of every server each night. A Create a backup task makes an extra one at your hour. When your plan's backups are full, a scheduled backup removes the oldest one that is not locked, so it never fails for lack of room.

Advanced: write the timing as cron

For times the simple form does not offer, tick Advanced (raw cron). The five fields are minute, hour, day of the month, month and day of the week, all in UTC. A * means every value, */6 means every sixth, and day of the week runs from 0 for Sunday to 6 for Saturday.

minutehourday/momonthday/wkRuns
04***Every day at 04:00 UTC
30*/6***Every six hours at half past: 00:30, 06:30, 12:30, 18:30
05**1Every Monday at 05:00 UTC
031**On the first day of every month at 03:00 UTC

Why a scheduled restart did not happen

What you seeUsually becauseWhat to do
It happened, but an hour or two offThe hour is UTCPick the hour from the table above
Nothing happened at allThe schedule has no tasksAdd tasks; an empty schedule says it does nothing
Nothing happened while the server was offOnly run when the server is online is tickedThat is the point of the tick
Nothing happens any moreThe schedule is pausedPress Activate
The restart came before the warningsThe restart task was added firstTasks run in the order they were added; remove it and add it again as the last task
The server comes back with errorsA plugin or mod you changed earlier only loaded nowRead the first errors with crash reports and logs

Written and checked by the Lodehost team, last reviewed on 7 November 2026.

FAQ

Questions about automatic restarts

Does an automatic restart save the world?

Yes. The server gets its normal stop command first, and Minecraft saves every world when it stops. Only a crash or a kill skips that.

Can a schedule restart only when nobody is online?

No, a schedule runs on time, not on player count. Only run when the server is online is about the server being on. Pick the hour when the fewest players are on.

How long does a restart take?

It depends on the size of the world and how many plugins or mods load. A small Paper server is back quickly, a large modpack takes longer. The console shows when it is done.

Do I need a plugin for automatic restarts?

No. The Schedules tab does it from outside the server, so it also works on Fabric, Forge and NeoForge, and it keeps working when a plugin breaks.

Can I send the warning as a title instead of a chat line?

Yes. Any console command works, so title @a title "Restart in 1 minute" puts it in the middle of every screen.

Restarts, backups and commands on a timer, from the panel.

The Schedules tab builds a nightly restart in a minute, and we make a backup of every server each night on top of that.

Look at the panel features