Earlier Versions
| Name | Size | Uploaded | Game Version | Downloads | |
| Restarter v1.2 release | 10.32 KB | Feb 15, 2012 | CB 1.1-R4 | 8,956 | Download |
| Restarter v1.1 release | 10.76 KB | Feb 4, 2012 | 1.1 | 830 | Download |
| Restarter v1.0 release | 10.67 KB | Jan 9, 2012 | CB 1.0.1-R1 | 941 | Download |
Description
The Restarter plugin automatically restarts the server after a configurable
amount of time. It works as a quick fix for any stability problems some servers
have when running for a long time, lets new plugins and configuration settings you've set take
effect, and clears out those AFK players.
Installing
Place the Restarter.jar file in the plugins/ directory. After the
first run, a Restarter/config.yml file will be generated with default
values.
Note that Restarter actually only stops the server. It does not handle
starting the server up again; refer to the examples/ directory for
example scripts that automatically bring the server up again after it
stops.
Configuration
The minutesToRestart value is how long in minutes the server will run
between restarts.
The variance value lets you set a maximum amount for the time between
to restart to vary. The server will run for an amount of time in the
range [minutesToRestart-variance, minutesToRestart+variance]. For
example, if minutesToRestart is 90 and variance is 10, then the server
will run for an amount of time between 80 and 100 minutes before
restarting. If you set variance to 0, then the server will always
restart after exactly minutesToRestart minutes.
The warn value is how many minutes before the restart to show the
warnMessage. Defaults to 1.
The warnMessage string is the message displayed to all users a
configurable amount of time before the restart.
The kickMessage string is the message shown to all users when they're
auto-kicked off of the server for the restart.
Commands
/rsquery
Queries how long until the next scheduled restart from now. Requires the "restarter.query" permission.
/rsset
Sets the amount of time in minutes until the next restart. This value is not saved to the configuration file. Giving zero or a negative number will do an immediate restart. Requires the "restarter.set" permission.
Source
The source is hosted at https://github.com/AgentME/Restarter.
Get 0.05 TON 💎
Download
Add a comment