From 8cc2a4ce5dd5d120c26a05a3f97cd19716996fbe Mon Sep 17 00:00:00 2001 From: Dylan T Date: Sun, 4 Nov 2018 23:31:57 +0000 Subject: [PATCH] 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. --- start.cmd | 10 +++------- start.ps1 | 2 -- start.sh | 2 -- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/start.cmd b/start.cmd index acd2102b2..ca069638a 100644 --- a/start.cmd +++ b/start.cmd @@ -12,13 +12,9 @@ if exist bin\php\php.exe ( 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 - ) + echo Couldn't find a valid PocketMine-MP installation + pause + exit 1 ) if exist bin\mintty.exe ( diff --git a/start.ps1 b/start.ps1 index b7e86f0b7..f6825ef1c 100644 --- a/start.ps1 +++ b/start.ps1 @@ -18,8 +18,6 @@ if($php -ne ""){ if($file -eq ""){ if(Test-Path "PocketMine-MP.phar"){ $file = "PocketMine-MP.phar" - }elseif(Test-Path "src\pocketmine\PocketMine.php"){ - $file = "src\pocketmine\PocketMine.php" }else{ echo "Couldn't find a valid PocketMine-MP installation" pause diff --git a/start.sh b/start.sh index 7546c5db5..e032a95a3 100755 --- a/start.sh +++ b/start.sh @@ -36,8 +36,6 @@ fi if [ "$POCKETMINE_FILE" == "" ]; then if [ -f ./PocketMine-MP.phar ]; then POCKETMINE_FILE="./PocketMine-MP.phar" - elif [ -f ./src/pocketmine/PocketMine.php ]; then - POCKETMINE_FILE="./src/pocketmine/PocketMine.php" else echo "Couldn't find a valid PocketMine-MP installation" exit 1