Scheduled Shutdown
ModMIT

Scheduled Shutdown

Shut down a server in 10 minutes or 100 seconds, with a boss bar showing the countdown to all players.

21
Downloads
1
Followers
2 months ago
Updated
📦
5
Versions

📖About Scheduled Shutdown

NOTE: There are two known bugs with this mod: it crashes if loaded on the client, but having it only on the server means command completion doesn't work right.

Make sure players have a warning before an impending server shutdown!

This mod adds a /shutdown and /update command, with 3 subcommands. If no subcommand is specified, it is equivalent to /shutdown slow or /update slow.

These are the subcommands:

  • slow: Schedule a shutdown with a 10-minute countdown. Creates empty minecraft.disable file.
  • quick: Schedule a shutdown with a 100-second countdown. Creates empty minecraft.disable file.
  • cancel: Cancel a scheduled shutdown. Deletes minecraft.disable file if it exists.

The /update variants will additionally create and delete an empty minecraft.needs-update file.

The minecraft.disable and minecraft.needs-update files can be useful for external tools that help manage your Minecraft server.

If all you want is to have a nice countdown, you can just ignore them. :)

I personally use them like this:

  • the existence of minecraft.disable will pause auto-restart functionality.
  • the existence of minecraft.needs-update will trigger an update of the server modpack.
  • my modpack includes Automodpack, so clients get updates when they next reconnect after an update.

A screenshot showing the boss bar and message immediately after running the `/shutdown quick` command.

A screenshot showing the boss bar and message, with 30 seconds remaining from a `/shutdown quick` command.