mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
PMF Level reader
This commit is contained in:
parent
23a7847350
commit
a603732bb4
3 changed files with 263 additions and 6 deletions
|
|
@ -130,6 +130,7 @@ class PluginAPI extends stdClass{
|
|||
}
|
||||
$path = DATA_PATH."plugins/".$p[1]["name"]."/";
|
||||
$this->plugins[$p[1]["class"]][1]["path"] = $path;
|
||||
@mkdir($path);
|
||||
return $path;
|
||||
}
|
||||
|
||||
|
|
@ -138,9 +139,7 @@ class PluginAPI extends stdClass{
|
|||
if($p === false){
|
||||
return false;
|
||||
}
|
||||
$path = DATA_PATH."plugins/".$p[1]["name"]."/";
|
||||
@mkdir($path);
|
||||
$this->plugins[$p[1]["class"]][1]["path"] = $path;
|
||||
$path = $this->configPath($plugin);
|
||||
$cnf = new Config($path."config.yml", CONFIG_YAML, $default);
|
||||
$cnf->save();
|
||||
return $path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue