ResetServerWhenEmpty plugin
Posted: Mon Mar 27, 2006 3:42 am
From the README:
I can't compile a Windows version since my computer is a bit outdated. Thanks to Happy Tanker for providing SSH and letting me do everything for this plugin on his computer.ResetServerWhenEmpty
by Theme97, 03/26/06
The plugin idea is very simple. You can toggle an RSWE (Restart Server When Empty) with a simple
/rswe command. You MUST have a repeating batch/shell for an automatic restart.
/rswe on
/rswe off
/rswe toggle
/rswe status
In order to use the first 3 commands, you must have the RSWE perm. In order to use /rswe status,
you need the RSWESTATUS perm.
When loading the plugin, you can also use a parameter called "noTimer". The plugin works by
checking every _rejoinTime seconds to see if there are any players. If there are no players, the
server sends a message in case there are observers and shuts down. The plugin relies on a repeating
batch or shell to start up the server. If noTimer is enabled, the plugin checks for players every
time somebody leaves.
v1.0: Plugin created. Not going in Plug-in Releases quite yet. Not very sure if noTimer works.