mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +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){
|
||||
$p = $this->get($plugin);
|
||||
$identifier = $this->getIdentifier($p[1]["name"], $p[1]["author"]);
|
||||
if($p === false){
|
||||
return false;
|
||||
}
|
||||
$path = $this->pluginsPath() . $p[1]["name"] . DIRECTORY_SEPARATOR;
|
||||
$this->plugins[$p[1]["class"]][1]["path"] = $path;
|
||||
$this->plugins[$identifier][1]["path"] = $path;
|
||||
@mkdir($path);
|
||||
return $path;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user