This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.
Auto restart!
Commands
Player Commands
/restart - Display's how long it is until the server restart's.
Admin Commands - These are OP only!
/restart now - Restart the server
/restart set [Time] [H/M/S] - Set how long until the server restart's in hours mins or secs
/restart setMessage [Message] - Set the server restart message (Supports chat colours as well as \n which will make a new line)
Warning: this will only do the same as /stop but with sound. Your server must be in a loop. Most bought server's have this feature though, if your server is custom made you can use this script: Server loops
An OP or player with permission would have to put it into that mode by running a command. Once it has restarted due to being empty, it wouldn't do it again until an OP or player with permission runs the command again. It's not a persistent mode between restarts, so there is no endless restart loop if the server is empty.
I think we need the permission node.
There isnt one, I dont think it should require one.
What is the permission to use /restart to display the amount of time left until restart?
@ECHO OFF IF /I "%PROCESSOR_ARCHITECTURE:-2%"=="64"
:start
"%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xincgc -Xmx1096M -jar "craftbukkit.jar" IF /I "%PROCESSOR_ARCHITECTURE:-2%"=="86" java -Xms1024 -Xmx8192 -jar "craftbukkit.jar"
goto start
There you go :)
please give an example start.bat, I had not enough heap or something like that when I tried to set it to restart..
mine is
@ECHO OFF IF /I "%PROCESSOR_ARCHITECTURE:-2%"=="64" "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -Xincgc -Xmx1096M -jar "craftbukkit.jar" IF /I "%PROCESSOR_ARCHITECTURE:-2%"=="86" java -Xms1024 -Xmx8192 -jar "craftbukkit.jar" PAUSE
If you type that at midnight then, yes.
@rb2750
But, from 0 O´clock ? so 0 Hour restart, 4 Hour restart, 8 Hour restart etc.?
Yes... /restart set 4 h Will restart every 4 hours
Can i make that the server restarts every 4 Hours ? ( 4,8,12,16,18,20,24 Hour )
Well erm... No ;p. I may add it. But at the moment you could wait until midnight then set it to 24 hours.
is it possible to somehow to set it will restart every midnight on GMT timezone for example 00:00 in GMT +2?
Ah okay
@rb2750
An OP or player with permission would have to put it into that mode by running a command. Once it has restarted due to being empty, it wouldn't do it again until an OP or player with permission runs the command again. It's not a persistent mode between restarts, so there is no endless restart loop if the server is empty.
What do you mean? Because if I did that if there wernt any players on for like 10 mins then it would just go in a restart loop...
Feature request: restart on empty. Restart the server as soon as the player count is zero.
Thanks. :)
cool plugin, waiting for release :D
Please Download Link. THX