Server: stop discriminating against crashes caused by folder plugins

these are the de facto standard, which means that a lot of crashes aren't getting reported from servers with folder plugins.
This commit is contained in:
Dylan K. Taylor 2023-09-06 11:34:03 +01:00
parent 690ee4c574
commit b160b87e24
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -80,7 +80,6 @@ use pocketmine\player\PlayerDataProvider;
use pocketmine\player\PlayerDataSaveException;
use pocketmine\player\PlayerInfo;
use pocketmine\plugin\PharPluginLoader;
use pocketmine\plugin\Plugin;
use pocketmine\plugin\PluginEnableOrder;
use pocketmine\plugin\PluginGraylist;
use pocketmine\plugin\PluginManager;
@ -1606,15 +1605,6 @@ class Server{
}
@touch($stamp); //update file timestamp
$plugin = $dump->getData()->plugin;
if($plugin !== ""){
$p = $this->pluginManager->getPlugin($plugin);
if($p instanceof Plugin && !($p->getPluginLoader() instanceof PharPluginLoader)){
$this->logger->debug("Not sending crashdump due to caused by non-phar plugin");
$report = false;
}
}
if($dump->getData()->error["type"] === \ParseError::class){
$report = false;
}