mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-05 11:27:07 +00:00
Remove start script support for source-code installations (#2495)
This was suggested recently by @TheDeibo. We don't want users running source-code installations unless they are developers, and developers should know how to boot a source-code installation anyway.
This commit is contained in:
parent
7b24fbc8db
commit
8cc2a4ce5d
10
start.cmd
10
start.cmd
@ -12,13 +12,9 @@ if exist bin\php\php.exe (
|
|||||||
if exist PocketMine-MP.phar (
|
if exist PocketMine-MP.phar (
|
||||||
set POCKETMINE_FILE=PocketMine-MP.phar
|
set POCKETMINE_FILE=PocketMine-MP.phar
|
||||||
) else (
|
) else (
|
||||||
if exist src\pocketmine\PocketMine.php (
|
echo Couldn't find a valid PocketMine-MP installation
|
||||||
set POCKETMINE_FILE=src\pocketmine\PocketMine.php
|
pause
|
||||||
) else (
|
exit 1
|
||||||
echo Couldn't find a valid PocketMine-MP installation
|
|
||||||
pause
|
|
||||||
exit 1
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if exist bin\mintty.exe (
|
if exist bin\mintty.exe (
|
||||||
|
@ -18,8 +18,6 @@ if($php -ne ""){
|
|||||||
if($file -eq ""){
|
if($file -eq ""){
|
||||||
if(Test-Path "PocketMine-MP.phar"){
|
if(Test-Path "PocketMine-MP.phar"){
|
||||||
$file = "PocketMine-MP.phar"
|
$file = "PocketMine-MP.phar"
|
||||||
}elseif(Test-Path "src\pocketmine\PocketMine.php"){
|
|
||||||
$file = "src\pocketmine\PocketMine.php"
|
|
||||||
}else{
|
}else{
|
||||||
echo "Couldn't find a valid PocketMine-MP installation"
|
echo "Couldn't find a valid PocketMine-MP installation"
|
||||||
pause
|
pause
|
||||||
|
2
start.sh
2
start.sh
@ -36,8 +36,6 @@ fi
|
|||||||
if [ "$POCKETMINE_FILE" == "" ]; then
|
if [ "$POCKETMINE_FILE" == "" ]; then
|
||||||
if [ -f ./PocketMine-MP.phar ]; then
|
if [ -f ./PocketMine-MP.phar ]; then
|
||||||
POCKETMINE_FILE="./PocketMine-MP.phar"
|
POCKETMINE_FILE="./PocketMine-MP.phar"
|
||||||
elif [ -f ./src/pocketmine/PocketMine.php ]; then
|
|
||||||
POCKETMINE_FILE="./src/pocketmine/PocketMine.php"
|
|
||||||
else
|
else
|
||||||
echo "Couldn't find a valid PocketMine-MP installation"
|
echo "Couldn't find a valid PocketMine-MP installation"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user