forked from H4PM/Elywing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.cmd
executable file
·35 lines (32 loc) · 990 Bytes
/
start.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
@echo off
TITLE Elywing server software for Minecraft: Pocket Edition // No Real utility
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 Elywing*.phar (
set POCKETMINE_FILE=Elywing*.phar
) else (
if exist Elywing.phar (
set POCKETMINE_FILE=Elywing.phar
) else (
if exist src\pocketmine\PocketMine.php (
set POCKETMINE_FILE=src\pocketmine\PocketMine.php
) else (
echo "Couldn't find a valid Elywing 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=88 -o Rows=32 -o AllowBlinking=0 -o FontQuality=3 -o Font="Consolas" -o FontHeight=10 -o CursorType=0 -o CursorBlinks=1 -h error -t "Elywing" -w max %PHP_BINARY% %POCKETMINE_FILE% --enable-ansi %*
) else (
%PHP_BINARY% -c bin\php %POCKETMINE_FILE% %*
)
REM )