@echo off
setlocal
net session >nul 2>&1
if %errorlevel% neq 0 (
    powershell -Command "Start-Process cmd.exe -ArgumentList '/c ""%~f0""' -Verb RunAs"
    exit /b
)
set "HOSTS_FILE=%WINDIR%\System32\drivers\etc\hosts"
powershell -Command "$c = Get-Content '%HOSTS_FILE%' | Where-Object { $_ -notmatch 'growtopia1\.com|growtopia2\.com|RvLnd\.here' }; Set-Content '%HOSTS_FILE%' $c"
ipconfig /flushdns >nul 2>&1
echo [SUCCESS] GTPS Node entries removed. Official Growtopia restored!
pause
