mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-25 20:33:59 +00:00
Hide rcon.password in the crash log
This commit is contained in:
parent
6262fbffcb
commit
838e7ad010
@ -347,7 +347,11 @@ class PocketMinecraftServer{
|
|||||||
$dump .= "Debug Info: ".var_export($this->debugInfo(false), true)."\r\n\r\n\r\n";
|
$dump .= "Debug Info: ".var_export($this->debugInfo(false), true)."\r\n\r\n\r\n";
|
||||||
global $arguments;
|
global $arguments;
|
||||||
$dump .= "Parameters: ".var_export($arguments, true)."\r\n\r\n\r\n";
|
$dump .= "Parameters: ".var_export($arguments, true)."\r\n\r\n\r\n";
|
||||||
$dump .= "server.properties: ".var_export($this->api->getProperties(), true)."\r\n\r\n\r\n";
|
$p = $this->api->getProperties();
|
||||||
|
if($p["rcon.password"] != ""){
|
||||||
|
$p["rcon.password"] = "******";
|
||||||
|
}
|
||||||
|
$dump .= "server.properties: ".var_export($p, true)."\r\n\r\n\r\n";
|
||||||
if($this->api->plugin instanceof PluginAPI){
|
if($this->api->plugin instanceof PluginAPI){
|
||||||
$plist = $this->api->plugin->getList();
|
$plist = $this->api->plugin->getList();
|
||||||
$dump .= "Loaded plugins:\r\n";
|
$dump .= "Loaded plugins:\r\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user