mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Merge branch 'release/3.3' into release/3.4
This commit is contained in:
commit
a714612453
@ -2209,6 +2209,14 @@ class Server{
|
|||||||
|
|
||||||
if($this->getProperty("auto-report.enabled", true) !== false){
|
if($this->getProperty("auto-report.enabled", true) !== false){
|
||||||
$report = true;
|
$report = true;
|
||||||
|
|
||||||
|
$stamp = $this->getDataPath() . "crashdumps/.last_crash";
|
||||||
|
$crashInterval = 120; //2 minutes
|
||||||
|
if(file_exists($stamp) and !($report = (filemtime($stamp) + $crashInterval < time()))){
|
||||||
|
$this->logger->debug("Not sending crashdump due to last crash less than $crashInterval seconds ago");
|
||||||
|
}
|
||||||
|
@touch($stamp); //update file timestamp
|
||||||
|
|
||||||
$plugin = $dump->getData()["plugin"];
|
$plugin = $dump->getData()["plugin"];
|
||||||
if(is_string($plugin)){
|
if(is_string($plugin)){
|
||||||
$p = $this->pluginManager->getPlugin($plugin);
|
$p = $this->pluginManager->getPlugin($plugin);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user