promotional bannermobile promotional banner
premium banner
Schedules a specific time of the day for server to shut down or automatically restart

Description

ForgeAutoShutdown will here on out be maintained by abused_master for minevraft 1.10.2+!

Links

Summary

This is a server mod I wrote to automatically restart our FTB server every day. Given the nature of FTB, we needed this but I could not find a solution that involved complicated wrappers, rcon commands or control panels. I would like to share it to help other admins who may need it.

I called it "ForgeAutoShutdown" as technically speaking, the mod's only purpose is to shut down the server at a given time. It is up to a shell script, Windows batch file or service control to bring the server back up, but it is not necessary.

Please feel free to report any bugs or suggest/pull request additions.

Features

  • Scheduled hour and minute of shutdown within 24 hours of server uptime (e.g. 07:00 or 13:00)
  • Warns all players of scheduled shutdown every minute, five minutes prior
  • Configurable warning and kick messages
  • Player voting for a manual shutdown without admin intervention
  • Watchdog for automatic shutdown if server is hung ("stalled") or TPS is too low for too long
  • Made for Forge 1.7.10, 1.8, and 1.10.2-1.12.2

License

The codebase is licensed under the MIT license. Therefore, you are free to redistribute this mod or any of its derivatives as part of a modpack. You are free to use this mod for commercial intents. You are free to use any or all of this code as part of another code base, as a derivative or as a clone. You have zero obligation to notify me or request permission to use this codebase in its raw or compiled forms.