Forge Auto Shutdown
Automatic Minecraft Server Management
This mod provides an adapted version for Minecraft 1.12.2 that automates server shutdown and restart processes. The mod must be installed on both client and server sides — in single-player worlds it doesn't add commands but is necessary for proper display of localized messages.
Main Features
Scheduled Automatic Shutdown − you can configure daily server shutdown at a specific time or after a set period of continuous operation. This is ideal for automatic restart via Windows batch files, shell scripts, or system services.
Voting System − players can initiate collective voting for forced server shutdown. This is particularly useful in situations when the server starts lagging but the administrator is unavailable.
Stability Monitoring (Watchdog Mode) − the mod can monitor server status and automatically respond to freezing or critical performance drops (experimental feature).
Operational Features
Scheduled Shutdown
Immediately after server start, the console displays an informational message with the exact date and time of the next automatic shutdown. If this message is missing — either the mod is incorrectly installed or this feature is disabled in settings.
When operating in client mode, the mod doesn't cause errors or interfere with gameplay, only logging a warning to the console.
Operation Modes
By default, time-of-day shutdown is used — the server will shut down daily at the set time. If the shutdown moment has already passed, the next one is scheduled for the following day.
An alternative option — shutdown based on uptime, allowing the server to be restarted multiple times per day or after extended periods of activity.
Warnings and Delays
The system automatically notifies all players about upcoming shutdown with five-minute intervals. If necessary, notifications can be disabled, and the server will shut down without any warnings.
Additionally, you can configure automatic shutdown delay if players remain on the server — the system will postpone shutdown until all participants leave the world. Only real players are considered; technical entities like BuildCraft quarries are ignored.
Shutdown Voting
Any player can initiate a voting procedure using the /shutdown command. After this, all players on the server (including the initiator) must vote using /shutdown yes or /shutdown no.
Voting is considered unsuccessful if sufficient "no" votes are collected or many participants leave the server during the process. In case of failure, the next vote becomes possible only after a specified time interval.
Upon successful voting, the server immediately shuts down without additional warnings.
Monitoring System
The enabled watchdog mode allows automatic monitoring of:
- Server freezing during game tick execution
- Maintaining TPS below critical threshold for extended periods
When problems are detected, the system first attempts a proper shutdown with all data saved. If this takes more than ten seconds, forced termination is applied.
Requirements
- Minecraft Forge server version 1.12.2 with forge 14.23.5.2859
- It's recommended to configure an automatic restart script for service recovery after shutdown
All features can be individually disabled through the configuration file.