How to Make Your Minecraft Server Auto-restart After Crash

2,577

10

4

Posted

Introduction: How to Make Your Minecraft Server Auto-restart After Crash

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

Share

Recommendations

  • Epilog Challenge 9

    Epilog Challenge 9
  • First Time Author Contest 2018

    First Time Author Contest 2018
  • Sew Warm Contest 2018

    Sew Warm Contest 2018
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

3 Comments

Why do you need to wait 10 seconds could you do it imediatly?

Don't pay attention to the left screen. I have dual monitors

I hope you like this tutorial enough to comment and share your thoughts!