fix detection for the java program, it may not work if one java process is already running

This commit is contained in:
Mylloon 2021-08-15 18:23:42 +02:00
parent 2aa8243994
commit 60e7a4013c

View file

@ -7,8 +7,8 @@ if exist Lavalink.jar (
call download.bat
)
tasklist /fi "ImageName eq Lavalink.jar" /fo csv 2> NUL | find /I "Lavalink.jar" > NUL
if "%ERRORLEVEL%" == "0" (
tasklist /FI "ImageName eq java.exe" 2> NUL | find /i "java.exe" | find /i "Console" > NUL
if %ERRORLEVEL% == 0 (
echo "Lavaling already started."
) else (
echo "Starting Lavalink server ..."