mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
Server: stop discriminating against folder plugins when generating crashdumps
in PM6, non-development plugins may appear in folder form.
This commit is contained in:
parent
c4ff6d7757
commit
89f8f421a6
@ -81,7 +81,6 @@ use pocketmine\player\PlayerDataSaveException;
|
|||||||
use pocketmine\player\PlayerInfo;
|
use pocketmine\player\PlayerInfo;
|
||||||
use pocketmine\plugin\FolderPluginLoader;
|
use pocketmine\plugin\FolderPluginLoader;
|
||||||
use pocketmine\plugin\PharPluginLoader;
|
use pocketmine\plugin\PharPluginLoader;
|
||||||
use pocketmine\plugin\Plugin;
|
|
||||||
use pocketmine\plugin\PluginEnableOrder;
|
use pocketmine\plugin\PluginEnableOrder;
|
||||||
use pocketmine\plugin\PluginGraylist;
|
use pocketmine\plugin\PluginGraylist;
|
||||||
use pocketmine\plugin\PluginManager;
|
use pocketmine\plugin\PluginManager;
|
||||||
@ -1592,15 +1591,6 @@ class Server{
|
|||||||
}
|
}
|
||||||
@touch($stamp); //update file timestamp
|
@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){
|
if($dump->getData()->error["type"] === \ParseError::class){
|
||||||
$report = false;
|
$report = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user