mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
25 lines
614 B
Batchfile
25 lines
614 B
Batchfile
@echo off
|
|
TITLE PocketMine-MP Minecraft PE server
|
|
COLOR 0F
|
|
mode con: cols=90
|
|
cd /d %~dp0
|
|
FOR /F "tokens=*" %%i in ('php -r "echo 1;"') do SET PHPOUTPUT=%%i
|
|
if not "%PHPOUTPUT%"=="1" (
|
|
echo [ERROR] Couldn't find PHP binary in PATH.
|
|
) else (
|
|
if exist php.cmd (
|
|
if exist bin\ansicon.exe (
|
|
bin\ansicon.exe php.cmd -d enable_dl=On PocketMine-MP.php --enable-ansi %*
|
|
) else (
|
|
php.cmd -d enable_dl=On PocketMine-MP.php %*
|
|
)
|
|
) else (
|
|
if exist bin\ansicon.exe (
|
|
bin\ansicon.exe php -d enable_dl=On PocketMine-MP.php --enable-ansi %*
|
|
) else (
|
|
php -d enable_dl=On PocketMine-MP.php %*
|
|
)
|
|
)
|
|
)
|
|
pause
|