pathfinder was changed to https://github.com/ppetermann/pathfinder (+small edits to make it work with nc)

This commit is contained in:
GameHerobrine 2022-10-20 15:48:32 +03:00
parent ae8c541452
commit 187704d96e
9 changed files with 130 additions and 44 deletions

View file

@ -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();