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
Doesn't work in 1.11.2 :(
Plugin works in 1.10 (1,10.2), but you have to disable auto kick. Ty for this plugin! http://imgur.com/a/CMwBV http://imgur.com/stvX48v
In reply to _ForgeUser18862020:
Plugin works in 1.12.2, too.
@fireant456
Thanks for letting us know anyway! :)
Worked until 1.8.8. Version 1.9 breaks the plugin. It wont restart and the server is still online. It kicks all players but then it shows me this in the console: http://pastebin.com/9ZK14m2X
@Tiegertosch
I am not a developer well versed in Java. Until I find someone who will work with me in the Java coding I cannot make any further updates. I may be learning Java in a year or two but until then we are out of luck
In reply to fireant456:
@fireant456
Can you add a better Massage config because I have a german server and the massages are very bugy in german
@Tiegertosch
Thanks for the message! I have updated the plugin information...
your plugin works well on 1.8.1 But you could kick messages using colored signature?
(sorry for my bad english)
Asked to keep on developing this
Well, as I have stated in the past I am not a fluent Java coder so I am unable to do upkeep on this plugin. My coded Fishqq, I have lost contact with. So if you are interested in helping code and recode this plugin send me a private message!
Thanks!~ Fireant456 CEO of FireTeam Clan
Does anyone have a script that will function on a Mac?
This plugin run good 1.7.9, but for the next update it's posible full translate text? and posible change tag and colours?
Thanks
@k3ldon
As of this post, plugin works perfectly on 1.7.9 Spigot.
EDIT~ There's a 1.7.9 version now. :D
dont work for mc 1.7.9 R2
Confirming working for minecraf 1.7.2
Hi,
please add the posibilty to translate the plurals for seconds and minutes, not all languages uses the s for plurals. For example in german it's:
Very good plugin, you should add translations....
Just thought of an idea. How bout if its shutting down in x minutes it will tell players when they join so they know. Just a random thought