mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
PluginManager: Log an error message when a plugin disables itself during enabling
This commit is contained in:
@ -447,6 +447,13 @@ class PluginManager{
|
||||
$this->enabledPlugins[$plugin->getDescription()->getName()] = $plugin;
|
||||
|
||||
(new PluginEnableEvent($plugin))->call();
|
||||
}else{
|
||||
$this->server->getLogger()->critical($this->server->getLanguage()->translate(
|
||||
KnownTranslationFactory::pocketmine_plugin_enableError(
|
||||
$plugin->getName(),
|
||||
KnownTranslationFactory::pocketmine_plugin_suicide()
|
||||
)
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user