@echo off TITLE PocketMine-MP Source Installer cd /d %~dp0 if exist %~dp0PocketMine-MP\ goto PMSTART where git >nul 2>nul || (powershell -command "& { iwr https://github.com/git-for-windows/git/releases/download/v2.20.1.windows.1/Git-2.20.1-64-bit.exe -OutFile Git-2.20.1-64-bit.exe }" & start Git-2.20.1-64-bit.exe & pause) git clone https://github.com/pmmp/PocketMine-MP.git -b 3.7.0 --recursive cd PocketMine-MP del start.cmd del start.ps1 powershell -command "& { iwr https://raw.githubusercontent.com/pmmp/PocketMine-MP/02ef0bfbb40442e4b03f6dc45c58510c49beb978/start.cmd -OutFile start.cmd }" powershell -command "& { iwr https://raw.githubusercontent.com/pmmp/PocketMine-MP/2a09aaf4568cf8f6449a82a7e23fae2ab9975b1a/start.ps1 -OutFile start.ps1 }" powershell -command "& { iwr https://ci.appveyor.com/api/buildjobs/jufhw3it4407ef9r/artifacts/php-7.2.16-vc15-x64.zip -OutFile php-7.2.16-vc15-x64.zip }" powershell -command "Expand-Archive -Path php-7.2.16-vc15-x64.zip -DestinationPath ." start vc_redist.x64.exe pause powershell -command "& { iwr https://getcomposer.org/installer -OutFile composer-setup.php }" .\bin\php\php.exe composer-setup.php --install-dir=bin .\bin\php\php.exe .\bin\composer.phar install --no-interaction --ansi del composer-setup.php mkdir plugins powershell -command "& { iwr https://jenkins.pmmp.io/job/PocketMine-MP/Stable/artifact/DevTools.phar -OutFile plugins\devtools.phar }" :PMSTART echo Starting PocketMine-MP pause cls cd %~dp0PocketMine-MP .\start.cmd