Advertisement
pnetosousa

Untitled

Dec 6th, 2021
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. @ECHO OFF
  2. SETLOCAL
  3.  
  4. :BEGIN
  5. CLS
  6. COLOR 3F >nul 2>&1
  7. SET MC_SYS32=%SYSTEMROOT%\SYSTEM32
  8. REM Make batch directory the same as the directory it's being called from
  9. REM For example, if "run as admin" the batch starting dir could be system32
  10. CD "%~dp0" >nul 2>&1
  11.  
  12. :CHECK
  13. REM Check if serverstarter JAR is already downloaded
  14. IF NOT EXIST "%cd%\serverstarter-2.0.2.jar" (
  15. ECHO serverstarter binary not found, downloading serverstarter...
  16. %SYSTEMROOT%\SYSTEM32\bitsadmin.exe /rawreturn /nowrap /transfer starter /dynamic /download /priority foreground https://github.com/AllTheMods/alltheservers/releases/download/v2.0.2/serverstarter-2.0.2.jar "%cd%\serverstarter-2.0.2.jar"
  17. GOTO MAIN
  18. ) ELSE (
  19. GOTO MAIN
  20. )
  21.  
  22. :MAIN
  23. java -jar serverstarter-2.0.2.jar
  24. GOTO EOF
  25.  
  26. :EOF
  27. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement