ForgeAutoShutdown

Schedules a specific time of the day for server to shut down or automatically restart

File Details

1.0.7 - Schedule shutdown by uptime

  • R
  • Nov 16, 2015
  • 17.90 KB
  • 547
  • 1.8

File Name

ForgeAutoShutdown-1.0.7-1.8.jar

Supported Versions

  • 1.8

The automatic shutdown can now be scheduled by uptime, rather than time of day. This adds a new config option under Schedule:

  • Uptime (default: false) - If true, then the Hour and Minute values are interpreted as length of uptime until server is automatically shutdown. Uptime is how long the server has been running since startup was complete.

This makes it possible to restart the server more than once a day, or for a longer time span than 24 hours. It also reduces the annoyance of shutdown after the server has already been restarted (after, for example, a modpack update).

This also includes some checks at runtime for valid config:

  • Setting Uptime to true with Hour and Minute both set to 0 will be corrected to 24 hours, with warning on console
  • Setting Uptime to false with Hour set higher than 23 will be corrected to 00 (e.g. 00:00), with warning on console