From a0ef15b15e04ffbaad3d7909ef5eb7aa6b0a32ed Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 21 Jun 2017 14:25:54 +0100 Subject: [PATCH] New CrashArchive is up --- src/pocketmine/Server.php | 6 +++--- src/pocketmine/resources/pocketmine.yml | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pocketmine/Server.php b/src/pocketmine/Server.php index c5c8c3483..62fe1e182 100644 --- a/src/pocketmine/Server.php +++ b/src/pocketmine/Server.php @@ -2142,15 +2142,15 @@ class Server{ if($p instanceof Plugin and !($p->getPluginLoader() instanceof PharPluginLoader)){ $report = false; } - }elseif(\Phar::running(true) === ""){ - $report = false; } + if($dump->getData()["error"]["type"] === "E_PARSE" or $dump->getData()["error"]["type"] === "E_COMPILE_ERROR"){ $report = false; } if($report){ - $reply = Utils::postURL("http://" . $this->getProperty("auto-report.host", "crash.pocketmine.net") . "/submit/api", [ + $url = ($this->getProperty("auto-report.use-https", true) ? "https" : "http") . "://" . $this->getProperty("auto-report.host", "crash.pmmp.io") . "/submit/api"; + $reply = Utils::postURL($url, [ "report" => "yes", "name" => $this->getName() . " " . $this->getPocketMineVersion(), "email" => "crash@pocketmine.net", diff --git a/src/pocketmine/resources/pocketmine.yml b/src/pocketmine/resources/pocketmine.yml index a08d7de98..d8bc7d88c 100644 --- a/src/pocketmine/resources/pocketmine.yml +++ b/src/pocketmine/resources/pocketmine.yml @@ -158,7 +158,8 @@ auto-report: send-code: true send-settings: true send-phpinfo: false - host: crash.pocketmine.net + use-https: true + host: crash.pmmp.io anonymous-statistics: #Sends anonymous statistics for data aggregation, plugin usage tracking