Server Restart is a mod that automatically shuts down the server and announces when the restart will happen in specified time intervals. This mod will NOT automatically restart the server, but sample restart scripts will be provided below.
This mod is intended to be used to announce ingame messages without the needing for external scripting to shutdown the server, and instead does it via Minecraft's shutdown method, just as if the /stop command was entered.
This mod can also be configured to send messages to a discord webhook, allowing users on your discord server to be informed of when the server stops, crashes, and is ready to be played on. No more having players logging in while the server is rebooting!
Installation:
Simply drop the mod into the mods folder, boot the server up, and it will generate default config options. Close the server, edit the config options, and you're good to go!
Settings:
Discord settings:
Server Restart settings:
messages.json:
This file is used to control the announcement messages sent before the server restarts. You can add as many messages as you want, just make sure to the file is proper JSON format. "name" is the human friendly name to use. This isn't used by the mod. "time" is the time, in seconds, to send the message before the server restarts. "message" is the message to send to the server. "announceToDiscord" is if the message should also be announced to discord, in addition to the ingame chat. A default messages.json is provided.
Support Policies:
Fabric versions? Fabric versions are not planned. However, my license allows anyone to port the mod to fabric.
1.11.x and below: No plans to port the mod to versions below 1.12.x.
1.12.x: Only bugfixes will be provided. No new features will be added. 1.12.x will also not report crashes, only regular shutdowns and startups.
1.13.x to 1.15.x: No plans to port the mod to these versions.
1.16.x: Only bugfixes will be provided. No new features will be added.
1.17.x: No plans to port the mod to this version.
1.18.x - 1.19.x: Bugfixes and feature requests will be accepted.
Sample Restart scripts:
https://github.com/FoalFreePress/ServerRestarter/wiki/1.16.x-and-below-scripts
https://github.com/FoalFreePress/ServerRestarter/wiki/1.18.x-and-above-scripts
No files available for download.