ScheduledShutdown: Precise Minecraft Server Reboots

The ScheduledShutdown plugin for Minecraft enables exact daily server restart times, preventing interval drift and protecting players from unexpected kicks during peak hours.

ScheduledShutdown: Smart Server Restarts for Minecraft

Every Minecraft server administrator knows the sinking feeling when a world starts to lag, memory usage climbs, and the tick rate drops after hours of continuous operation. The usual remedy is a timed restart, but the classic interval-based approach is riddled with flaws. A delayed boot or an unexpected machine restart throws the entire schedule off, often pushing a reboot directly into peak playtime. The result? A server full of players suddenly kicked to the main menu at the worst possible moment.

This is where a smarter solution comes into play. Instead of relying on intervals that drift, why not anchor your server's maintenance to a fixed point in the day? That is exactly the problem that ScheduledShutdown: Smart Server Restarts for Minecraft aims to solve with a refreshingly straightforward approach.

Precision Timing Over Guesswork

The core philosophy behind this plugin is simple: use the actual time of day, not a countdown timer. You define a specific hour and minute, and the server initiates a graceful shutdown at that exact moment, every single day, without any drift or offset. This means you can schedule maintenance for the quietest hours, like the deep night, ensuring that the dragon fight or a tense PvP battle is never interrupted by an unannounced reboot.

How the Configuration Works

Setting up the schedule is refreshingly minimal. The entire logic lives in a tiny configuration file. On the first line, you input the hour (from 0 to 23), and on the second line, the minute (from 0 to 59). There are no complex JSON structures or endless lists of options to wade through. If the file is missing, the plugin generates it automatically with empty values, ready for you to fill in just two numbers.

For instance, to schedule a restart for exactly midnight, you would write:

  • 0
  • 0

To set a shutdown for 7:37 PM, you simply write:

  • 19
  • 37

The plugin operates on the machine's local time, so there is no need to fiddle with timezone offsets in the config; everything is picked up automatically. This feature is particularly useful for server owners who want a "set it and forget it" solution.

Getting Started: Installation and Setup

The installation process is as straightforward as the configuration. To get started, you need to download ScheduledShutdown: Smart Server Restarts for Minecraft and place the JAR file into your server's plugins folder. After that, run a reload command or perform a full server restart. The plugin will instantly create its directory and the configuration file. Open it, enter your desired time, save it, and restart the server once more. That is all there is to it.

For those who enjoy a modded experience on the client side, keeping a modern launcher handy is a good practice. It can help you quickly find and install the necessary mods directly from a menu, which avoids manual file copying and version conflicts. This is especially helpful when assembling a modpack for a private server with friends.

Building a Seamless Restart Loop

Stopping the server on schedule is only half the battle. To ensure it comes back online immediately, you need to wrap the startup process in an infinite loop at the operating system level. ScheduledShutdown: Smart Server Restarts for Minecraft does not handle the restart itself, but it works perfectly with simple scripts.

Windows: Batch File Loop

For Windows, you can edit your startup .bat file. Add a :start label before the launch line and a goto start after it. Here is a basic example:

@ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
:start
"%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
goto start

Once the server process ends, it will automatically boot up again. To completely stop the cycle, simply close the command prompt window.

Linux: Shell Script Loop

For Linux servers, the while true; do ... done construct is the way to go. The script below includes a countdown before the reboot, giving the admin a chance to interrupt the cycle if a full shutdown is necessary:

#!/bin/sh
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
while true
do
java -Xmx1024M -Xms1024M -jar craftbukkit.jar
echo "If you want to completely stop the server process now, press Ctrl+C before the time is up!"
echo "Rebooting in:"
for i in 5 4 3 2 1
do
echo "$i..."
sleep 1
done
echo "Rebooting now!"
done

Pressing Ctrl+C in the terminal interrupts the loop and stops the server permanently, which is convenient for scheduled maintenance windows.

Lightweight Performance and Player Warnings

One of the most appealing aspects of this tool is its negligible footprint. It consumes virtually no CPU or memory while idle. Furthermore, one minute before the scheduled shutdown, the plugin sends a warning to the chat. This gives players ample time to save their progress and log off calmly, eliminating panic and preventing lost builds.

The developer has plans to expand functionality in the future, including options for specific days of the week, multi-day restart intervals, and an in-game command to set the time. However, even in its current form, ScheduledShutdown: Smart Server Restarts for Minecraft addresses the primary need: a stable, daily restart without manual intervention.

Final Verdict: Stability Without the Headache

If you are tired of fighting with drifting intervals and want your server to restart exactly when you intend, this plugin is an invaluable asset. With minimal settings, transparent logic, and compatibility with any automation script, it is an ideal choice for small to medium-sized projects. Combine it with a proper startup loop, and your Minecraft world will run like clockwork, day in and day out. For those looking to optimize their server management, the ScheduledShutdown: Smart Server Restarts for Minecraft for Minecraft plugin is a must-have. Learning how to install it takes less than a minute, and the stability it provides is well worth the effort.

Download ScheduledShutdown for Minecraft 1.2.5

Original name: ScheduledShutdown

Minecraft: 1.2.5

FileVersionLoaderSize
ScheduledShutdown.jar1.2.58 КБDownload