Restarter
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.
-
View User Profile
-
Send Message
Posted Sep 28, 2014This does auto restart a server but you need something else added to your server. Hosters add it tho and I use http:ownagehosting.com they are good hosters and this plugin turns the server off and back on without a problem!
-
View User Profile
-
Send Message
Posted Aug 8, 2014found a good script :D
:begin java -Xmx1024M -jar Craftbukkit.jar -o true PAUSE
goto begin
but only for Windows
-
View User Profile
-
Send Message
Posted Dec 17, 2013i segest a restart command incase something needs to be restarted straitaway, like for installing plugins
-
View User Profile
-
Send Message
Posted Oct 27, 2013where should i put the run.command thing? i'm on a mac!
-
View User Profile
-
Send Message
Posted Oct 25, 2013Thought I would add the reboot script for a Mac. Just replace your startup.command with this:
#!/bin/bash
cd "$( dirname "$0" )"
while true
do
java -Xms1024M -Xmx1024M -jar craftbukkit.jar
echo -e 'If you want to completely stop the server process now, press ctrl-C before the\ntime is up!'
echo "Rebooting in:"
for i in {5..1}
do
echo "$i..."
sleep 1
done
echo 'Restarting now!'
done
-
View User Profile
-
Send Message
Posted Jul 30, 2013Could you add a option for put coldowns?
Ex: before 10s of restart a loop,
[INFO] The server will restart in 10s! [INFO] The server will restart in 9s! [INFO] The server will restart in 8s! [INFO] The server will restart in 7s! [INFO] The server will restart in 6s! [INFO] The server will restart in 5s! [INFO] The server will restart in 4s! [INFO] The server will restart in 3s! [INFO] The server will restart in 2s! [INFO] The server will restart in 1s! [INFO] The server is restarting!
Thxs
-
View User Profile
-
Send Message
Posted Jun 1, 2013@modernmaster901
You have to use a starter from there: https://github.com/AgentME/Restarter/tree/master/examples
@DukeBruno1 You have to use a starter from there: https://github.com/AgentME/Restarter/tree/master/examples
-
View User Profile
-
Send Message
Posted May 11, 2013works good. Thanks!
-
View User Profile
-
Send Message
Posted Mar 7, 2013@DukeBruno1
This plugin relies on you having an infinite loop on your startup script, so when the server stops the script takes it back up again. It's not possible for bukkit to restart once it has stopped by itself.
-
View User Profile
-
Send Message
Posted Jan 21, 2013Its no Restart! It close the Server and you must start it manuell
-
View User Profile
-
Send Message
Posted Dec 31, 2012I'm using a Mac and I'm wondering what I need to put in my start.command script for it to work?
-
View User Profile
-
Send Message
Posted Nov 7, 2012@FenixAzulDev
i use linux (ubuntu)
-
View User Profile
-
Send Message
Posted Nov 2, 2012@modernmaster901
The restarting part is controlled by your startup script. Depending on the OS the server is running on, you have to change your startup script to make it restart after it shuts down.
-
View User Profile
-
Send Message
Posted Oct 10, 2012well i think its great but i have craftbuckkit operator panel on me when a lanch server, then i want stop i say stop in my pail its redo the lanch then brings up pail again.
-
View User Profile
-
Send Message
Posted Sep 8, 2012Doesnt restart server for me just shuts it down
-
View User Profile
-
Send Message
Posted Aug 19, 2012@TheOneWhoOwns
Since 1.3 sometimes I it wont stop. Just dont, but players see it as offline. o.O Do not know is it a restarters issue - hard to track
-
View User Profile
-
Send Message
Posted Aug 19, 2012@FenixAzulDev UNIX Bash auto server start script http://pastebin.com/HbqZBRCr
-
View User Profile
-
Send Message
Posted Aug 15, 2012Does this work for 1.3 ?
-
View User Profile
-
Send Message
Posted Aug 8, 2012nvm...
-
View User Profile
-
Send Message
Posted Jul 22, 2012how do i get it to start up the server on a mac