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 Jun 17, 2012Anyone here has set it up in linux? Im trying to get the script to work but it doesn't work for me. I don't event know in what directory it goes =(
-
View User Profile
-
Send Message
Posted Jun 16, 2012update this to the latest bukkit
-
View User Profile
-
Send Message
Posted Jun 5, 2012Guys i have the way if you use Windows to Let ur server restart after a shutdown... replace ur RUN.BAT by this... (dont forget to replace the craftbukkit.jar on the text for ur version of bukkit... soo if using craftbukkit-1.2.5-R2.0.JAR put this instead of craftbukkit.jar lunch ur server from this file, it should auto restart every time the server goes down... :D it work for me Soo the plugin is 100% restarting my server everytime! i hope i helped few of you. AND SAVE IT AS A .BAT
ECHO OFF
SET BINDIR=%~dp0
CD /D "%BINDIR%"
:start
"%ProgramFiles%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
goto start
-
View User Profile
-
Send Message
Posted May 3, 2012Can you make a command to restart the server from in game sometimes my server lags and want to do a quick restart
-
View User Profile
-
Send Message
Posted Apr 29, 2012when i start my server it says unable to access craftbuckket.jar and than just loops
-
View User Profile
-
Send Message
Posted Apr 4, 2012<<reply 617610="">>
Are you sure you saved the file? The Restarter plugin shouldn't ever be overwriting values that are in the file already. When the plugin loads as the server starts, it reads the config file, and adds default values for any missing keys only.
-
View User Profile
-
Send Message
Posted Mar 28, 2012If I edit Config: warnMessage: Server is having a scheduled restart in one minute. kickMessage: The server is restarting and will be back in a moment!
These sections. On i open it when server is reloaded... I see only that: warnMessage: Server is having a scheduled restart in one minute. kickMessage: The server is restarting and will be back in a moment!
Not edited. What i do?
-
View User Profile
-
Send Message
Posted Mar 11, 2012<<reply 545365="">>
You mean for it to pause the timer while there's no players on the server? I might look into that. (Sorry for the slow response, your post didn't make sense to me the first time I saw it. My first thought was thinking that you wanted it so that when the timer ran out, it wouldn't restart until the moment there were players, which was silly.)
<<reply 585903="">>
The plugin still works with current versions of Bukkit and doesn't have any bugs that I know of, so the only updates I'd need to do would be adding features. The only feature I can think of at the moment is the one mentioned above. (I don't intend to add more complicated timing modes to this plugin, like restarting on the hour, etc; other more complex plugins seem to cover that already.)
EDIT: Seems like the reply feature is broken.
-
View User Profile
-
Send Message
Posted Mar 11, 2012Plan on updating this?
-
View User Profile
-
Send Message
Posted Feb 17, 2012Could you perhaps/please implement a configurable option/node to only restart the server when there is a specified number of players on (or none at all)?
Thanks! :)
-
View User Profile
-
Send Message
Posted Feb 15, 2012<<reply 540788="">>
Does your server take 5 minutes or more to restart? It's kind of funny having a longer warning period than the amount of time it takes the server to restart, but why not. The 'warn' config option in version 1.2 does what you want.
-
View User Profile
-
Send Message
Posted Feb 13, 2012is it possible to let people know 5 minutes before the server restarts, that i twill restart?
-
View User Profile
-
Send Message
Posted Feb 5, 2012@re4397
I'm assuming you're launching your server from some sort of script or batch file. (If you aren't, then you should.) You just need to make it launch the craftbukkit server in a loop. Check the examples/ directory for an example .sh script (Unix) or .bat script (Windows). You'll probably need to tweak at least the craftbukkit .jar filename in the script.
-
View User Profile
-
Send Message
Posted Feb 4, 2012I dont know configure my server to start again
-
View User Profile
-
Send Message
Posted Feb 4, 2012Thanks for the update!
I've implemented it on my server and it's working perfectly. I love the simplicity and the fact that's it's easy to use.
THANKS!
-
View User Profile
-
Send Message
Posted Feb 4, 2012I just released a new version that has configurable warn and kick-on-restart messages. It should be approved and up for download soon.
@didzym
I don't think I'm going to implement that behavior; it seems like there are other mods that can do that and more already. One of my goals is to keep this mod simple and to its point.
-
View User Profile
-
Send Message
Posted Jan 29, 2012Great plugin :)
-
View User Profile
-
Send Message
Posted Jan 23, 2012(See below)
Agreed!
-
View User Profile
-
Send Message
Posted Jan 23, 2012@feildmaster
quote. this is a very good plugin, custom messages short before restart would be interesting! :D
-
View User Profile
-
Send Message
Posted Jan 12, 2012Is it possible to configure restart time stated (every 2 hours as 8.00 10.00 12.00)?