mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 00:29:54 +00:00
Fixed plugins not getting loaded
This commit is contained in:
parent
196b0a4263
commit
4e9df899c2
@ -154,8 +154,9 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
foreach($this->apiList as $a){
|
foreach($this->apiList as $a){
|
||||||
if(method_exists($this->$a, "init")){
|
if(method_exists($a[1], "init")){
|
||||||
$this->$a->init();
|
$a[1]->init();
|
||||||
|
usleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -354,7 +355,7 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run
|
|||||||
}
|
}
|
||||||
require_once($file);
|
require_once($file);
|
||||||
$this->$name = new $class($this->server);
|
$this->$name = new $class($this->server);
|
||||||
$this->apiList[] = $name;
|
$this->apiList[] = array($name, $this->$name);
|
||||||
console("[INFO] API ".$name." [".$class."] loaded");
|
console("[INFO] API ".$name." [".$class."] loaded");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user