ForgeAutoShutdown 1.12.2
Mod Overview
This mod is an adapted version of the original ForgeAutoShutdown for Minecraft 1.12.2. For proper operation, installation is required on both the client and server sides. In single-player worlds, it doesn't add commands but is necessary for correct display of localized messages.
Main Features
The mod provides three key functions for server management automation:
Scheduled Shutdown
The system allows configuring automatic server shutdown according to a schedule - either at a specific time of day or after a set period of continuous operation. This is particularly useful for automatic restart via operating system scripts or services.
When the server starts, an informational message is displayed in the console with the date and time of the next scheduled shutdown:
[10:50:09] [Server thread/INFO] [ForgeAutoShutdown]: Next automatic shutdown: 08:30:00 09-June-2019
If this message is missing, the mod is installed incorrectly or the function is disabled in settings.
Voting System
Players can initiate a collective vote for forced server shutdown. To do this, execute the /shutdown command, after which all connected players must vote using /shutdown yes or /shutdown no.
If the vote passes successfully, the server immediately shuts down without additional warnings.
Watchdog (Experimental Feature)
A special monitoring thread tracks the server's status for freezes and performance degradation. When problems are detected, the system attempts to perform a soft shutdown with data saving, and in extreme cases - forced shutdown.
Configuration and Settings
All mod functions can be individually configured through the configuration file. Options include shutdown delay when active players are present, time interval settings, and threshold values for the voting system.