mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Fixed phar plugins not reading resources correctly
This commit is contained in:
@ -158,7 +158,8 @@ class PluginManager{
|
||||
return null;
|
||||
}
|
||||
|
||||
$loader->loadPlugin($path);
|
||||
$prefixed = $loader->getAccessProtocol() . $path;
|
||||
$loader->loadPlugin($prefixed);
|
||||
|
||||
$mainClass = $description->getMain();
|
||||
if(!class_exists($mainClass, true)){
|
||||
@ -175,7 +176,7 @@ class PluginManager{
|
||||
* @var Plugin $plugin
|
||||
* @see Plugin::__construct()
|
||||
*/
|
||||
$plugin = new $mainClass($loader, $this->server, $description, $dataFolder, $path);
|
||||
$plugin = new $mainClass($loader, $this->server, $description, $dataFolder, $prefixed);
|
||||
$plugin->onLoad();
|
||||
$this->plugins[$plugin->getDescription()->getName()] = $plugin;
|
||||
|
||||
|
Reference in New Issue
Block a user