mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 13:09:44 +00:00
Fixed plugin path
This commit is contained in:
parent
c23fc0057a
commit
02dc06c58b
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue