How to Make Your Minecraft Server Auto-restart After Crash

by LegoMaster1031 in Circuits > Software

42422 Views, 10 Favorites, 0 Comments

How to Make Your Minecraft Server Auto-restart After Crash

Web.png

OK. Lets say you own a Minecraft server full of crazy, faithful ops who try to help but end up crashing your Minecraft server. I can solve that so your server will start up in 10 seconds after the crash. Lets start of by editing our start.bat, launch.bat, or the windows batch file you named. Right click the file, click edit, and you'll see a bunch of jibberish you possibly don't even understand. Now, highlight that, and copy and paste this code in its place (this is the code I use):

:begin

java.exe -Xms3072m -Xmx3072m -Dlog4j.configurationFile=log4j2.xml -jar craftbukkit.jar -o true

timeout 10

echo resuming server...

goto begin

------------------------------------------------------------------------------------------------------------------------------------------------------

Now, start your server, and try to type in 'stop' in your cmd prompt. Let the timer count down, and the server will start again! I apologize for not very many pictures, but please leave a like, and possibly join my server at: jointhedoghouse.ddns.net