mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-18 17:34:11 +00:00
Fixed plugin path
This commit is contained in:
parent
c23fc0057a
commit
02dc06c58b
@ -140,11 +140,12 @@ class PluginAPI extends stdClass{
|
|||||||
|
|
||||||
public function configPath(Plugin $plugin){
|
public function configPath(Plugin $plugin){
|
||||||
$p = $this->get($plugin);
|
$p = $this->get($plugin);
|
||||||
|
$identifier = $this->getIdentifier($p[1]["name"], $p[1]["author"]);
|
||||||
if($p === false){
|
if($p === false){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$path = $this->pluginsPath() . $p[1]["name"] . DIRECTORY_SEPARATOR;
|
$path = $this->pluginsPath() . $p[1]["name"] . DIRECTORY_SEPARATOR;
|
||||||
$this->plugins[$p[1]["class"]][1]["path"] = $path;
|
$this->plugins[$identifier][1]["path"] = $path;
|
||||||
@mkdir($path);
|
@mkdir($path);
|
||||||
return $path;
|
return $path;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user