mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
Fixed plugins not generating their config file
This commit is contained in:
parent
8149c9e7ca
commit
6a4010a9af
@ -69,6 +69,7 @@ class Config{
|
|||||||
}
|
}
|
||||||
if(!file_exists($file)){
|
if(!file_exists($file)){
|
||||||
$this->config = $default;
|
$this->config = $default;
|
||||||
|
$this->save();
|
||||||
}else{
|
}else{
|
||||||
if($this->type === CONFIG_DETECT){
|
if($this->type === CONFIG_DETECT){
|
||||||
$extension = explode(".", basename($this->file));
|
$extension = explode(".", basename($this->file));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user