mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 14:05:35 +00:00
Allow for command-line arguments to starter scripts
This commit is contained in:
parent
d9e9b9fd22
commit
50ae0953ac
@ -28,15 +28,15 @@ ping 127.0.0.1 -n 3 -w 1000>nul
|
|||||||
) else (
|
) else (
|
||||||
if exist php.cmd (
|
if exist php.cmd (
|
||||||
if exist bin\ansicon.exe (
|
if exist bin\ansicon.exe (
|
||||||
bin\ansicon.exe php.cmd -d enable_dl=On PocketMine-MP.php --enable-ansi
|
bin\ansicon.exe php.cmd -d enable_dl=On PocketMine-MP.php --enable-ansi %*
|
||||||
) else (
|
) else (
|
||||||
php.cmd -d enable_dl=On PocketMine-MP.php
|
php.cmd -d enable_dl=On PocketMine-MP.php %*
|
||||||
)
|
)
|
||||||
) else (
|
) else (
|
||||||
if exist bin\ansicon.exe (
|
if exist bin\ansicon.exe (
|
||||||
bin\ansicon.exe php -d enable_dl=On PocketMine-MP.php --enable-ansi
|
bin\ansicon.exe php -d enable_dl=On PocketMine-MP.php --enable-ansi %*
|
||||||
) else (
|
) else (
|
||||||
php -d enable_dl=On PocketMine-MP.php
|
php -d enable_dl=On PocketMine-MP.php %*
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
4
start.sh
4
start.sh
@ -2,10 +2,10 @@
|
|||||||
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
cd $DIR
|
cd $DIR
|
||||||
if [ -f php5/bin/php ]; then
|
if [ -f php5/bin/php ]; then
|
||||||
./php5/bin/php -d enable_dl=On PocketMine-MP.php
|
./php5/bin/php -d enable_dl=On PocketMine-MP.php $@
|
||||||
read -p "Press [Enter] to continue..."
|
read -p "Press [Enter] to continue..."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
php -d enable_dl=On PocketMine-MP.php
|
php -d enable_dl=On PocketMine-MP.php $@
|
||||||
read -p "Press [Enter] to continue..."
|
read -p "Press [Enter] to continue..."
|
||||||
exit 0
|
exit 0
|
Loading…
x
Reference in New Issue
Block a user