Moved spl to PocketMine-SPL

This commit is contained in:
Shoghi Cervantes
2014-08-25 20:54:53 +02:00
parent d6a0e284e3
commit bda597a71e
21 changed files with 32 additions and 1871 deletions

View File

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