AutoStop Description
AutoStop Description
This module allows you to automatically stop your server after a certain amount of time and display warning messages to the players.
Combined with a special batch file to start your server this will allow you not only to stop the server but also restart the server automatically.
Example Batch Script
An example for linux on which only ONE craftbukkit server is running and NO other java tasks . It will keep starting the craftbukkit server as long as you don't press STRG-C when that message is displayed:
while : do java -Xmx1536M -jar craftbukkit.jar nogui echo "Press STRG-C now to quit or wait 10 seconds to restart" sleep 10 killall java done
More Example Scripts
A lot more scripts can be found in the original thread.
Commands
All commands normally start with /tmp, for example /tmpmemory but there is also a nicer version available /tnt which can be changed to your liking in the config.
/memory
will show you java memory usage of the craftbukkit server
/tmpadmin
And there is the admin command (only available as /tmpadmin) which allows you to also configure some AutoStop functions.
- /tmpadmin autostop on
to enable autostop
- /tmpadmin autostop off
to disable autostop
- /tmpadmin autostop now
will stop the server directly
- /tmpadmin autostop time
will tell you how much time is left till the stop
- /tmpadmin autostop (h|m|s) <time>
turns on automatic stop at the corresponding time, eg. /tmpadmin autostop m 15 will stop the server in 15 minutes
- /tmpadmin autostop status
will show a status of the autostop module
- /tmpadmin autostop reload
will reload the autostop config.
Is there a way to just make this shutdown everyday at midnight, i can only seem to set it up so it shuts down 4 hours from when i start it.