Created
February 29, 2016 02:30
-
-
Save tedliou/63eb5423d8bef3874755 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
TITLE PocketMine-MP server software for Minecraft: Pocket Edition | |
cd /d %~dp0 | |
if exist bin\php\php.exe ( | |
set PHPRC="" | |
set PHP_BINARY=bin\php\php.exe | |
) else ( | |
set PHP_BINARY=php | |
) | |
if exist PocketMine-MP.phar ( | |
set POCKETMINE_FILE=PocketMine-MP.phar | |
) else ( | |
if exist src\pocketmine\PocketMine.php ( | |
set POCKETMINE_FILE=src\pocketmine\PocketMine.php | |
) else ( | |
echo "Couldn't find a valid PocketMine-MP installation" | |
pause | |
exit 1 | |
) | |
) | |
REM if exist bin\php\php_wxwidgets.dll ( | |
REM %PHP_BINARY% %POCKETMINE_FILE% --enable-gui %* | |
REM ) else ( | |
if exist bin\mintty.exe ( | |
start "" bin\mintty.exe -o Columns=110 -o Rows=32 -o AllowBlinking=0 -o FontQuality=3 -o Font="DejaVu Sans Mono" -o FontHeight=10 -o CursorType=0 -o CursorBlinks=1 -h error -t "PocketMine-MP" -i bin/pocketmine.ico -w medium %PHP_BINARY% %POCKETMINE_FILE% --enable-ansi %* | |
) else ( | |
%PHP_BINARY% -c bin\php %POCKETMINE_FILE% %* | |
) | |
REM ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment