mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
pathfinder was changed to https://github.com/ppetermann/pathfinder (+small edits to make it work with nc)
This commit is contained in:
parent
ae8c541452
commit
187704d96e
9 changed files with 130 additions and 44 deletions
|
|
@ -62,9 +62,9 @@ class PluginAPI extends stdClass{
|
|||
|
||||
public function __destruct(){
|
||||
foreach($this->plugins as $p){
|
||||
$p[0]->__destruct();
|
||||
if(method_exists($p[0], "__destruct")){$p[0]->__destruct();};
|
||||
}
|
||||
unset($plugins);
|
||||
unset($this->plugins);
|
||||
}
|
||||
|
||||
public function getAll(){
|
||||
|
|
@ -163,6 +163,7 @@ class PluginAPI extends stdClass{
|
|||
}
|
||||
|
||||
$phr = "phar://$filePath/";
|
||||
console("loader:".$pluginInfo["classLoader"]);
|
||||
include($phr."/src/".$pluginInfo["classLoader"]);
|
||||
$class = $pluginInfo["CLClass"];
|
||||
$loader = new $class();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue