AutoShutdown
This is an Admin tool to shutdown the server at a specific time.
Usage
- Put the jar in the plugins folder.
- Reload / restart your server.
- Change the configuration of AutoShutdown.
- Basically what this does is shutting down the server at a time specified in the config file.
Config
The standard config.yml
noPlayersHour: 22 noPlayersMinute: 0 absoluteHour: 23 absoluteMinute: 0 enabled: true
On startup this will check if enabled is true, if not, then it will disable the shutdown function.
If you want to use this as restarter for your server, then use the next batch file :
:start @echo off java -Xmx1024M -Xms1024M -jar craftbukkit.jar pause goto start
Commands
The main command is /AutoShutdown or /asd for short.
- reload, pretty straight forward right?
- set noPlayersHour/noPlayers/absoluteHour/absoluteMinute <setting>, this will change the setting in the config.yml
To-do-list
- Fix announcements - Done
- Suggestions?
@Timtower
I hthe run file in order, it restarts every time I "stop" it. However, it acts strangely when the time that's in the file is less than the actual time. (The server was empty art this time) I run a tekkit server, MCPC. This is my batch file.
I tried using your code, but it doesn't restart in my case. All the other plugins work with my tekkit, so I don't think that's it...
P.S.: When no one is online, it still says "No one is onlline, restarting the server is 7 hours"
I have been looking for a plugin like this, but all of them are outdated. I hope this works. :)
@fyrus12345
Do you want to restart your server with this or do you want to shutdown your pc? If you want to restart then you need the batch file provided, else you need to keep your original batch file.
Wait so if there are no players at hour 22 it restarts, and at hour 23 it restart regardless? Is that how it works? I set my noplayershour to 1 (It's 7 here) and it restarts again and again, continually.:/ (My absolute was 23 still)
@ardragoon
This plugin is for shutdowns only,but if you put the next lines your run.bat then it will restart
Tim
ok, so the server shuts down. ok. does it restart again?
if nit, this plugin is useless ;)
greets
Whoo, 17 downloads :D