fix detection for the java program, it may not work if one java process is already running
This commit is contained in:
parent
2aa8243994
commit
60e7a4013c
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ if exist Lavalink.jar (
|
||||||
call download.bat
|
call download.bat
|
||||||
)
|
)
|
||||||
|
|
||||||
tasklist /fi "ImageName eq Lavalink.jar" /fo csv 2> NUL | find /I "Lavalink.jar" > NUL
|
tasklist /FI "ImageName eq java.exe" 2> NUL | find /i "java.exe" | find /i "Console" > NUL
|
||||||
if "%ERRORLEVEL%" == "0" (
|
if %ERRORLEVEL% == 0 (
|
||||||
echo "Lavaling already started."
|
echo "Lavaling already started."
|
||||||
) else (
|
) else (
|
||||||
echo "Starting Lavalink server ..."
|
echo "Starting Lavalink server ..."
|
||||||
|
|
Reference in a new issue