pocketmine\CrashDump::pluginsData PHP Метод

pluginsData() приватный Метод

private pluginsData ( )
    private function pluginsData()
    {
        if (class_exists("pocketmine\\plugin\\PluginManager", false)) {
            $this->addLine();
            $this->addLine("Loaded plugins:");
            $this->data["plugins"] = [];
            foreach ($this->server->getPluginManager()->getPlugins() as $p) {
                $d = $p->getDescription();
                $this->data["plugins"][$d->getName()] = ["name" => $d->getName(), "version" => $d->getVersion(), "authors" => $d->getAuthors(), "api" => $d->getCompatibleApis(), "enabled" => $p->isEnabled(), "depends" => $d->getDepend(), "softDepends" => $d->getSoftDepend(), "main" => $d->getMain(), "load" => $d->getOrder() === PluginLoadOrder::POSTWORLD ? "POSTWORLD" : "STARTUP", "website" => $d->getWebsite()];
                $this->addLine($d->getName() . " " . $d->getVersion() . " by " . implode(", ", $d->getAuthors()) . " for API(s) " . implode(", ", $d->getCompatibleApis()));
            }
        }
    }