Added extra crash dump settings, added way to disable parts of it or change the host

This commit is contained in:
Shoghi Cervantes
2014-07-28 14:42:51 +02:00
parent b10e63b951
commit 10c67a57a7
3 changed files with 36 additions and 16 deletions

View File

@ -1792,8 +1792,8 @@ class Server{
$this->logger->emergency("An unrecoverable error has occurred and the server has crashed. Creating a crash dump");
$dump = new CrashDump($this);
if($this->getProperty("settings.send-crash", true) !== false){
$reply = Utils::postURL("http://crash.pocketmine.net/submit/api", [
if($this->getProperty("auto-report.enabled", true) !== false){
$reply = Utils::postURL("http://".$this->getProperty("auto-report.host", "crash.pocketmine.net")."/submit/api", [
"report" => "yes",
"name" => "PocketMine-MP ".$this->getPocketMineVersion(),
"email" => "crash@pocketmine.net",