RestartEvolution
Version 4.2 by bergerb
Description
Restart Evolution is a plugin that allows admins to restart and stop their servers.
The server script automatically detects by typing in a command whether it should stop or restart.
If you cant edit the start script, the server will do an restart or stop (defined by your hoster) when you type in /re stop AND /re restart.
This Plugin works only perfectly if you can edit the start script.
But you can also use it without the Script!
- Restart/Stop the server with a specified message
- Set the warningtimes in the config
- Modify every warning at RestartEvolution
- Restart/Stop the server immediately
- Restart/Stop the server after the given time
- show not decimal time without a comma
- working also with linux / mac
- status on join
- Sound when warning Sound-List
Setting up
You just have to put the RestartEvolution.jar file in your plugins folder and replace your start script with the one at the Scripts page.
Commands and Permissions
Command | Permission | Description | |
---|---|---|---|
/re help | shows the help of RestartEvolution | ||
/re restart | re.restart | restarts the server | |
/re stop | re.stop | stops the server | |
/re restart now | re.restart.now | restarts the server immediately | |
/re stop now | re.stop.now | stops the server immediately | |
/re restart time <minutes> | re.restart.time | restarts the server with the given time | |
/re stop time <minutes> | re.stop.time | stops the server with the given time | |
/re reload | re.reload | reloads the plugin and stops the restarting progress |
Planned Features
- Nothing planned new
@deleted_2753847
But if you choose this way, you don't need this plugin ^^
@bergerb
you can restart without the console yeah, but why would you want to stop it with no way to bring it back up again in the future without going to the console? O_o I know it's not a perfect solution for every problem but for servers that just need an automatic restart (like mine) that script should be just fine
@deleted_2753847
You see it... but i want to restart / stop the server without the console ;)
@bergerb
well unless you have access to the console (which you should) you can't. the loop gives you a 5 second window to press control + c to kill the loop.
@deleted_2753847
And what would you do if you want to stop the server ??
@bergerb
what do you mean? When the server goes down for the scheduled restart using this plugin (after say 3 hours) it will stop the server, and then the start.sh file kicks back in after it is killed, effectively restarting the server.
@deleted_2753847
But if you use this, its not automatically ... This code only loops the start.sh
Hey everyone - for those looking to use linux with this, my server technician wrote a .sh file that will automatically pick the server back up if it stops. here it is:
just change how much ram your server is limited to, and replace "ftbserver.jar" with your server's jar. I just tested restarting using the /re stop time command and it works like a charm.
@sdrl12345
Thanks :D
Thank you for upload such good plugin !
@bergerb
PERFECT, so far so good. Thank you so much for your hard work. I will update you if everything is working when I have a chance to use it for a couple of days. Thanks!!! :)
@Tractorboss
okay... i think the auto restart dont work very well. i must fix this with a new update. the server creates by starting a restart.mcs file (if you have enabled auto restart). and if you stop the server, the batch file detects if exist restart.mcs and restart the server... tomorrow/today i hope i can fix this problem.
Thanks ;)
@bergerb
One more thing as well. When you type in the /re stop time (min) it says the server restart not the server stop cooldown.
@bergerb
How my server is set up is that with this plugin I want it to automatically restart every three ours during the day. Then I have an auto shutdown plugin that issues a stop command at 11:30pm. Now when that plugin issues the stop command it will just restart and not shutdown. Im not sure I understand what you mean by onlyif you type in before /re restart though, sorry
@Tractorboss
but only if you type in before /re restart :)
@bergerb
Yeah exactly, when you type in stop the mcs file stays there and then just restarts the server instead of stopping it.
@Tractorboss
if you type in a restart, it generates the restart.mcs file. and when you type in stop after typing restart, it don't deletes the file, thank you for this information, i had to fix this :D
@bergerb
I think I found out what was going on and it was that I had to remove the restart.mcs file for it to execute the stop command. So with that file the stop command does not work and when you execute the restart it automatically generates the file and then restarts. Sorry if im being so wordy, I am was just so excited for the update ont his with the auto restart.
@bergerb
Hi, Thank you so much for incorporating the auto server restart function. I just have one issue. When I go to issue the stop command it just restarts the server. I dont know if its something I did or what. The previous version would stop the server just fine. Please let me know, thanks
Finally, 3.0 had been approved with cool new features :)