mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Config Reload
This commit is contained in:
parent
dfd451f620
commit
54f058de3e
1 changed files with 6 additions and 1 deletions
|
|
@ -60,6 +60,11 @@ class Config{
|
||||||
$correct = $this->check();
|
$correct = $this->check();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function reload()
|
||||||
|
{
|
||||||
|
$this->load($this->file, $this->type, array());
|
||||||
|
}
|
||||||
|
|
||||||
public function load($file, $type = CONFIG_DETECT, $default = array()){
|
public function load($file, $type = CONFIG_DETECT, $default = array()){
|
||||||
$this->correct = true;
|
$this->correct = true;
|
||||||
$this->type = (int) $type;
|
$this->type = (int) $type;
|
||||||
|
|
@ -238,4 +243,4 @@ class Config{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue