mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
14 lines
380 B
Bash
Executable File
14 lines
380 B
Bash
Executable File
#!/bin/bash
|
|
DIR="$(cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
|
cd "$DIR"
|
|
if [ -f ./php5/bin/php ]; then
|
|
mkdir -m 0777 bin/
|
|
mv ./php5/bin/php ./bin/php
|
|
rm -r -f ./php5/
|
|
fi
|
|
if [ -f ./bin/php ]; then
|
|
./bin/php -d enable_dl=On PocketMine-MP.php $@
|
|
else
|
|
echo "[WARNING] You are not using the standalone PocketMine-MP PHP binary."
|
|
php -d enable_dl=On PocketMine-MP.php $@
|
|
fi |