@echo off
title Login Server Console
echo Starting Server...
:start
java -Xmx128m -Dlogback.configurationFile=./config/logback.xml -cp ./lib/*;* silentium.authserver.L2LoginServer
if ERRORLEVEL 2 goto restart
if ERRORLEVEL 1 goto error
goto end
:restart
echo.
echo Admin have restarted, please wait.
echo.
goto start
:error
echo.
echo Server have terminated abnormaly.
echo.
:end
echo.
echo Server terminated.
echo.
pause
