Auto Shutdown / Restart
PLUGIN TESTED WITH 1.8.1!!!
Plugin Version: 3.2.1 Minecraft/Bukkit Version: 1.5.1 (Tested with 1.8.1)
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.
Look at our Examples here...
Restart scripts
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.
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.
- The warning message is configurable.
- All connected users can be kicked from the server before the shutdown.
- Server can be automatically restarted when the plugin shutdowns the server via restart script (server start file change).
- Server can be automatically restarted at a certain time after the plugin shutdowns the server via Scheduled Tasks (windows program).
Link Removed: http://www.mediafire.com/?b9elixc9fb1hie7
Requirements:
- SuperPerms/PermissionsEX 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 t 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.
A commented 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
The default config file can be found here
- 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.- working!
- kickonshutdown - kick users before shutting the server down. (Better than an end of stream error) - working!
- 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
- Shutdown message - the message shown in chat when warn times are displayed
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. Currently partial disabled due to a bug
- /as set now - set the shutdown schedule to shut down within 60 seconds
- /as list - lists what the currently configured shutdown times are
VIDEOS! :D
Spainish Tutorial (Tested on spigot 1649)
Credit for the spanish tutorial goes to MaxMar628
All credit goes to chromerium who created the mod up until MC vr. 1.3.1
Thank you for this plugin! :) I hope you will add better configuration for translations: other languages don't use "s" for "second" plural.
@Emmerella
I created a support ticket here, but we need more information on the issue. Please review the ticket for more information.
@JoeyCo
Sorry, I will have my coder look into the issue. I have noticed the issue before was not sure if it was fixed for sure. By the way are you using the newest version???
I can't use the commands, and I didn't get a configuration file, or the folder for the plugin. But it still restarts the server when I shut off the server.
Just had a fight with the plugin XD
/autoshutdown cancel only hide the countdown :P the server will still restart.
Thanks for your work :)
@ehbaron123456789
If you set AutoShutdown to scheduled shutdown your server, RemoteToolkit will restart it automatically. I just tried this and it works. I hope this is what you meant with "support"?
Hey. Does this plugin support RemoteToolkit?
@rb2750 it helps speeds the updates
@marubal21
Thanks! You're welcome! ;)
@ler12558
I dont get your point.. Do you want to translate the plugin or something?
@rb2750
So what? :D Begone troll!
I can plug to the Taiwanese people?
Great work, thanks for the update!
@turtledude01
Im currently working on the config even tough its not as simple as it may sound since the code is kinda messy.. :D aaand i'd appreciate if you would open a ticket for your suggestion so i can inform you about my progress without spamming this comment section here ;)
greez qqfish
Thanks for updating it. I just have one simple question though. Can you add a config for the warnings. Players are getting confused thinking the servers actually shutting down, but it really restarts. Thanks.
Hi there, great plugin so far. I kinda reworked it yesterday and i hope it works. I tested it on craftbukkit builds 1.5.1-R0.1 and 1.5.1-R0.2 with no other plugins installed. Its running on my main server now.. no problems so far.
AutoShutdown.jar and
Codegreez qqfish
@Noast07
It is posted but here is the Link Removed: http://www.mediafire.com/?m9s40c0cp06cv3a again so you have it, the plugin is really messy in this coding but needs to be completely recoded...
atleast post the stuff so I can code it lol
@dstqaz79ter
As far as I can tell the plugin is still working... if you are still having issues please create a ticket or reply to my comment.
Thanks, Fireant456
@dstqaz79ter
I cannot say for sure because I cannot test this issue at the moment until March. Sorry :/
@senotajs
No you cannot unless you program your restart script to do so...
Is there a way to get the 1.4.6 version working with 1.4.7 while I wait? This is the PERFECT plugin for me, but I am running Tekkit Lite with Bukkit Forge (1.4.7) and it works fine untill it gets a java.lang.arrayindextoutofbounds exception after it has unloaded the worlds. It does unload the worlds and brings the server offline, but the last statement is of an error and not "please press any button to continue". For all intents and purposes, it seems to work, so I am not going to mess with it. Could you make it exit the cmd window as well when it shuts down?
can i set time when server gonna turn on?