Only verify if its a Console process, already a java filter in the tasklist

This commit is contained in:
Mylloon 2021-08-15 18:35:27 +02:00
parent 60e7a4013c
commit acba430a53

View file

@ -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 (