AutoShutdown
AutoShutdown: Automatically Shutdown/Stop your server at a set time every day.
Version: v2.4
This plugin is designed to allow you to simply set a time to have the server shut down at the same time every day, without any manual intervention, and provide users ample warning before it does so.
You should use a script to automatically restart the server when it stops. In that script, you could perform any backups or other maintenance you'd like to perform.
I use this plugin to keep a server healthy for longer than a few days by pre-emptively restarting it before it can get sick.
Example restart script in the forum thread.
Features:
- Time can be set persistently in the configuration file.
- Multiple times can be specified.
- Shutdown time can be set temporarily via commands
- You can cancel the running shutdown.
- You can view the current scheduled shutdown time.
- You can gracefully stop the server with a configurable grace time.
- The warning message times are configurable.
- All connected users can be kicked from the server before the shutdown.
Download AutoShutdown 2.4 JAR (for 1.4.2 craftbukkit prerelease)
Source Code
Requirements:
- SuperPerms compatible permissions plugin. Currently won't limit access to commands without some kind of permissions support.
Installation
- Drop the AutoShutdown.jar file into your plugins directory. At first start, the configuration file is created.
- Edit the config.yml file created in plugins/AutoShutdown/ and change the settings to what you would prefer.
- Either reload the server for the changes to take effect, or use /as reload from within the game. Also, all commands work from the console without the slash.
Upgrading
From all previous versions to 2.2: AutoShutdown.properties file is no longer read. Use the config.yml. I'm not a fan of YAML, but its the standard, and as much as I disagree with bukkit's choice of YAML for configuration files, I have to live with it.
An uncommented config.yml file will be created on first start. Start the server, make changes, then do an /as reload. Or just use /as set HH:MM to set the shutdown times you want.
Configuration Options
- shutdowntimes - the time in HH:MM format to stop the server. You can specify multiple, times, separated by comma.
- kickreason - the reason to provide users when they are kicked.
- kickonshutdown - kick users before shutting the server down. (Better than an end of stream error)
- warntimes - seconds before the shutdown time you would like a warning message broadcast to all users, separated by comma.
- gracetime - seconds to wait before shutting the server down in response to an /as now
Permissions Nodes
- autoshutdown.admin - Access to all autoshutdown commands.
Commands
- /as help - displays in-game help
- /as reload - reload the configuration file (replacing any shutdown you have scheduled currently in memory)
- /as cancel - cancel the currently scheduled shutdown
- /as set HH:MM - set the schedule to a new time. Writes to config.yml to persist the setting.
- /as set now - set the shutdown schedule to shut down within 60 seconds
- /as list - lists what the currently configured shutdown times are
After auto shutdown, sometime 1-2 player loose inventory. Anybody can help me? :S Its a big problem with autorestart. Thanks
no way to change the massages per config?
http://dl.dropbox.com/u/4620984/AutoShutdown-jar_1.1R6%261.2.3R0%20tested.zip
debug flags removed...no other change
@inorixu
Thank ! This one work fine on 1.2.3 CB#2034 "BETA": Download : http://dl.dropbox.com/u/4620984/AutoShutdown%20for%20jre%206.zip
hello,do you make a update for 1.2.3? Unfortunately, your plugin is very useful for my server. thank you
@vanderfr
jre version is 6?
try this
http://dl.dropbox.com/u/4620984/AutoShutdown%20for%20jre%206.zip
@vanderfr
@inorixu
Still broken with #2029 1.2.3-R0.1 :(
org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: net/stupendous/autoshutdown/AutoShutdownPlugin : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:150) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:287)
jar and config files
http://dl.dropbox.com/u/4620984/AutoShutdown-jar%26config_1.1R6%261.2.zip
source code
http://dl.dropbox.com/u/4620984/matjam-AutoShutdown-4bec073.zip
a listener class removed,changed to use new FileConfiguration class.
hope it work on your bukkit ^^
@inorixu
I sent you a message, please reply.
i fix this plugin to work on R6,how to share?
lost enchanted items from the inventory after the shutdown. :(
pls update
would love an update to this plugin
So this shutdown will also clear the RAM usage right? As in a /stop command? and also please update it to 1.1 :) thanks!
my server has a restart prob any time, with plugin or not, and rolls back unless i use "/save-all" before i do the reset. i haven't tried this one. does it do something like "/save-all" before the restart?
@mylilnikka
Definitely agree...feature request? Add the shutdown message to the config file, so we can make it whatever we want?
does not kick on shutdown.
Is there a way to change the text that says" Server shutting down in X minutes." Its very misleading. I want to change "Shutting down" to "Restarting". Please help!
ok how exactly do you get it to restart do you use that restart script in place of the start.bat i already have in the craftbukkit server folder
Edit: oops i mean run.dat?