/BetterRun.bat

This script will recover the server when server suddenly shutdown or crashed

Primary LanguageBatchfileMIT LicenseMIT

This script was made for minecraft server

⚙ Preview Code

@echo off
cls
echo This script will keep your server running even after crashing!
title BetterRun.bat by Tedd
:StartServer
start /wait java -jar YOURSERVER.jar
echo (%time%) Server closed/crashed... restarting!
goto StartServer

❓ Getting Started

  1. Head over to the releases page
  2. Download the release (ex. v1.0)
  3. Open the file up and change YOURSERVER to the spigot filename.
  4. Make sure you place this run.bat near your spigot server file.
  5. Run run.bat to start the script.

⚠ Note

Do not turn off the script, or the script will not open the server automatically.


🎣 Preferences