Strip out RCON, closes #2686

Users should move to the new RconServer plugin instead.
This commit is contained in:
Dylan K. Taylor
2019-01-23 20:39:16 +00:00
parent 61e04d5284
commit 738e310798
6 changed files with 0 additions and 483 deletions

View File

@ -53,7 +53,6 @@ use function ob_start;
use function php_uname;
use function phpinfo;
use function phpversion;
use function preg_replace;
use function str_split;
use function strpos;
use function substr;
@ -173,7 +172,6 @@ class CrashDump{
if($this->server->getProperty("auto-report.send-settings", true) !== false){
$this->data["parameters"] = (array) $argv;
$this->data["server.properties"] = @file_get_contents($this->server->getDataPath() . "server.properties");
$this->data["server.properties"] = preg_replace("#^rcon\\.password=(.*)$#m", "rcon.password=******", $this->data["server.properties"]);
$this->data["pocketmine.yml"] = @file_get_contents($this->server->getDataPath() . "pocketmine.yml");
}else{
$this->data["pocketmine.yml"] = "";