mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Fixed old & deprecated plugins not being able to create a config file
This commit is contained in:
parent
00c3201580
commit
afbb5fab04
4 changed files with 5 additions and 4 deletions
|
|
@ -125,6 +125,7 @@ class PluginAPI extends stdClass{
|
|||
return false;
|
||||
}
|
||||
$path = FILE_PATH."plugins/".$p[1]["name"]."/";
|
||||
@mkdir($path);
|
||||
$this->plugins[$p[1]["class"]][1]["path"] = $path;
|
||||
$cnf = new Config($path."config.yml", CONFIG_YAML, $default);
|
||||
$cnf->save();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue