Do not send crash reports generated from a source PM installation

This commit is contained in:
Shoghi Cervantes 2014-07-30 17:05:46 +02:00
parent 25f5d409f1
commit 2eced89e6f

View File

@ -1803,7 +1803,10 @@ class Server{
if($p instanceof Plugin and !($p->getPluginLoader() instanceof PharPluginLoader)){
return;
}
}elseif(\Phar::running(true) == ""){
return;
}
$reply = Utils::postURL("http://".$this->getProperty("auto-report.host", "crash.pocketmine.net")."/submit/api", [
"report" => "yes",
"name" => "PocketMine-MP ".$this->getPocketMineVersion(),