直接把信息追加到server.properties文本末尾- @echo off & cd /d "%~dp0"
- set "foot=.changemap"
- if not exist "logs\latest.txt" goto :exit
- for /f "delims=." %%i in ('findstr /i "%foot%" "logs\latest.txt"') do (
- echo level-name=%%i
- echo resourcepack=https:网盘地址/%%i.zip
- (
- echo level-name=%%i
- echo resourcepack=https:网盘地址/%%i.zip
- ) >> "server.properties"
- )
- start "" "stop.bat"
- echo say mapchangecomplete!
- :exit
- pause&exit
复制代码
|