mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Fixed plugin schedulers crashing after disable/reenable
This commit is contained in:
@ -575,6 +575,7 @@ class PluginManager{
|
||||
foreach($plugin->getDescription()->getPermissions() as $perm){
|
||||
$this->addPermission($perm);
|
||||
}
|
||||
$plugin->getScheduler()->setEnabled(true);
|
||||
$plugin->getPluginLoader()->enablePlugin($plugin);
|
||||
}catch(\Throwable $e){
|
||||
$this->server->getLogger()->logException($e);
|
||||
|
Reference in New Issue
Block a user