Community listing page, reviews here may not be monitored by the author.
Schedule Shutdown
No reviews yet
Shut down your server after a duration of time has passed.
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
Schedule Shutdown
A Minecraft data pack containing functions that will stop the server after a duration of time.
Important: To use this datapack, you need to be running a dedicated server with function-permission-level in server.properties to 4. This datapack will not function (get it? :D) in a singleplayer world.
Important: Except for NO_AUTO_SHUTDOWN.zip, all versions will automatically shut down the server after the specified length of time. See Auto-Shutdown for an explanation of what this means and why I did it like that.
Below is a list of available delays. Each one triggers the one below it. (I did this in a not dumb way, with 5hrs triggering 1hr after 4hrs, 1hr trigger 15min after 45min, etc.)
- 5hrs
- 1hr
- 15min
- 5min
- 1min
Any scheduled shutdowns are cancelled upon starting the server.
Examples
# Shut down the server in 5hrs. See src/data/schedule_shutdown/functions/delay/* for function names.
function schedule_shutdown:delay/five_hours
# Cancel a scheduled shutdown.
function schedule_shutdown:clear_all
Auto-Shutdown
I originally made this datapack because I had figured out how to host a Minecraft server in GitHub Actions, but needed the server to automatically close with enough time left to save the server state to the repo. That's why there is a 5 hour version (max GitHub workflow run time is 6 hours). The files with a name like length_of_time.zip will automatically run the function schedule_shutdown:delay/length_of_time when the server loads (using Minecraft's load.json). Unless you want your server to automatically shut down after a length of time, use NO_AUTO_SHUTDOWN.zip.
FAQ/Troubleshooting
Failed to load function schedule_shutdown:shutdown
Same as Couldn't load tag schedule_shutdown:all_shutdown as it is missing following references: schedule_shutdown:shutdown.
Couldn't load tag schedule_shutdown:all_shutdown as it is missing following references: schedule_shutdown:shutdown
Make sure you set the function-permission-level in server.properties to 4 and try starting the server again. If you still have this error, please open an issue in the GitHub repo.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources