Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Update exe.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
wellsilver authored Feb 10, 2022
1 parent 687ab44 commit 62eb33b
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions lite/exe.bat
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,31 @@ if %errorlevel%==1 (
::THIS IS NOT A PORTABLE VERSION
set /a version=1
if not exist %APPDATA%\EZServerlite goto install
call %APPDATA%/EZServerlite/var.bat
:home
cls
:hom2
echo.
echo Welcome
echo By using this you agree to Mojangs EULA
echo ver, start
echo.
set /p r=$
if %r%==ver goto ver
if %r%==start goto start

goto home
:hom
echo.
echo The server has stopped (read above for more info)
echo If there is a issue do not be afraid to open a issue on the github!
echo.
goto hom2
:ver
::dwnl verlite.bat?
if exist %APPDATA%/EZServerlite/bin/bin.bat del %APPDATA%/EZServerlite/bin/bin.bat
bitsadmin /transfer "Download" /download /priority foreground https://wellsilver.github.io/a/EZServer/verlite.bat %APPDATA%/EZServerlite/bin/bin.bat
call bin/bin.bat

call %APPDATA%/EZServerlite/bin/bin.bat
goto home

:start
cls
Expand All @@ -37,14 +46,17 @@ echo 4. Exit
set /p conf=$
for /f %%a in ('powershell Invoke-RestMethod api.ipify.org') do set IP=%%a
if not exist %APPDATA%\EZServerlite\serv\lol.jar goto error
copy "%APPDATA%\EZServerlite\config" "%APPDATA%\EZServerlite\serv
:strt
cls
echo Launcher: %version%
echo IP: %IP%
echo.

cd %APPDATA%/EZServerlite/serv
java -jar lol.jar --nogui
if %conf%==1 goto log
if %conf%==2 goto strt
if %conf%==3 goto home
if %conf%==3 goto hom
goto error
:log
cls
Expand Down

0 comments on commit 62eb33b

Please sign in to comment.