Only verify if its a Console process, already a java filter in the tasklist
This commit is contained in:
parent
60e7a4013c
commit
acba430a53
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ if exist Lavalink.jar (
|
||||||
call download.bat
|
call download.bat
|
||||||
)
|
)
|
||||||
|
|
||||||
tasklist /FI "ImageName eq java.exe" 2> NUL | find /i "java.exe" | find /i "Console" > NUL
|
tasklist /FI "ImageName eq java.exe" 2> NUL | find /i "Console" > NUL
|
||||||
if %ERRORLEVEL% == 0 (
|
if %ERRORLEVEL% == 0 (
|
||||||
echo "Lavaling already started."
|
echo "Lavaling already started."
|
||||||
) else (
|
) else (
|
||||||
|
|
Reference in a new issue