From f0d728b4e3a894e7d14e3462c430483a4c1bf951 Mon Sep 17 00:00:00 2001 From: iTruth Date: Wed, 27 Apr 2022 21:48:57 +0800 Subject: [PATCH] Fix start.cmd can't find grasscutter when modify SERVER_JAR_NAME in start_config.cmd --- start.cmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/start.cmd b/start.cmd index f44a5f00d..9cee1a999 100644 --- a/start.cmd +++ b/start.cmd @@ -33,7 +33,7 @@ if not "%JAVA_PATH%" == "DO_NOT_CHECK_PATH" ( goto :EXIT ) ) else set JAVA_PATH= -if not exist "%SERVER_PATH%grasscutter.jar" ( +if not exist "%SERVER_PATH%%SERVER_JAR_NAME%" ( call :LOG [ERROR] Server jar not found. goto :EXIT ) @@ -129,7 +129,7 @@ del /f /q "%temp%\db.vbs" >nul 2>nul :GAME call :LOG [INFO] Starting server... -"%JAVA_PATH%java.exe" -jar "%SERVER_PATH%grasscutter.jar" +"%JAVA_PATH%java.exe" -jar "%SERVER_PATH%%SERVER_JAR_NAME%" call :LOG [INFO] Server stopped :EXIT