mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
Permission: added removeChild()
this probably isn't useful at all, but it's best to provide alternatives for all the stuff that getChildren() could have been used for ...
This commit is contained in:
parent
3849756993
commit
aa67c4894f
@ -121,4 +121,10 @@ class Permission{
|
||||
$this->children[$name] = $value;
|
||||
$this->recalculatePermissibles();
|
||||
}
|
||||
|
||||
public function removeChild(string $name) : void{
|
||||
unset($this->children[$name]);
|
||||
$this->recalculatePermissibles();
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user