mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-05 17:41:46 +00:00
Config Reload
This commit is contained in:
parent
dfd451f620
commit
54f058de3e
@ -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…
x
Reference in New Issue
Block a user