mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 03:35:33 +00:00
Call Plugin::__destruct() on PluginAPI::__destruct()
This commit is contained in:
parent
85438aff0d
commit
14a7e0a201
@ -28,6 +28,13 @@ class PluginAPI extends stdClass{
|
|||||||
$this->randomNonce = Utils::getRandomBytes(16, false);
|
$this->randomNonce = Utils::getRandomBytes(16, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function __destruct(){
|
||||||
|
foreach($this->plugins as $p){
|
||||||
|
$p[0]->__destruct();
|
||||||
|
}
|
||||||
|
unset($plugins);
|
||||||
|
}
|
||||||
|
|
||||||
public function getList(){
|
public function getList(){
|
||||||
$list = array();
|
$list = array();
|
||||||
foreach($this->plugins as $p){
|
foreach($this->plugins as $p){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user