mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 14:05:35 +00:00
Added option to skip save in ServerAPI::serProperty()
This commit is contained in:
parent
c88b1c97b3
commit
079db8d234
@ -446,9 +446,11 @@ class ServerAPI{
|
|||||||
return ($this->config->exists($name) ? $this->config->get($name):$default);
|
return ($this->config->exists($name) ? $this->config->get($name):$default);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setProperty($name, $value){
|
public function setProperty($name, $value, $save = true){
|
||||||
$this->config->set($name, $value);
|
$this->config->set($name, $value);
|
||||||
$this->writeProperties();
|
if($save == true){
|
||||||
|
$this->writeProperties();
|
||||||
|
}
|
||||||
$this->loadProperties();
|
$this->loadProperties();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user