@echo OFF :restart title [Minecraft 1.12.2 Sponge Server] SET BINDIR=%~dp0 echo start %DATE% %time%>>opentime.txt "D:\Program\Java\jre1.8.0_221\bin\java.exe" -Xms1024M -Xmx2048M -jar "%BINDIR%\minecraft_server.1.12.2.jar" echo stop %DATE% %time%>>opentime.txt echo 03 秒后重启 ping -n 2 -w 500 0.0.0.1>nul echo 02 秒后重启 ping -n 2 -w 500 0.0.0.1>nul echo 01 秒后重启 ping -n 2 -w 500 0.0.0.1>nul goto restart