mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +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);
|
||||
}
|
||||
|
||||
public function setProperty($name, $value){
|
||||
public function setProperty($name, $value, $save = true){
|
||||
$this->config->set($name, $value);
|
||||
$this->writeProperties();
|
||||
if($save == true){
|
||||
$this->writeProperties();
|
||||
}
|
||||
$this->loadProperties();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user