mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Moved spl to PocketMine-SPL
This commit is contained in:
@@ -58,9 +58,7 @@ class PharPluginLoader implements PluginLoader{
|
||||
}
|
||||
$file = "phar://$file";
|
||||
$className = $description->getMain();
|
||||
$this->server->getLoader()->add(substr($className, 0, strrpos($className, "\\")), array(
|
||||
"$file/src"
|
||||
));
|
||||
$this->server->getLoader()->addPath("$file/src");
|
||||
|
||||
if(class_exists($className, true)){
|
||||
$plugin = new $className();
|
||||
|
Reference in New Issue
Block a user