mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
PhpStorm inspections
Fixed some minor bugs and dropped some obsolete code pocketmine\level\generator namespace is ignored in this commit
This commit is contained in:
@ -173,13 +173,13 @@ class Permission{
|
||||
* @param string|Permission $name
|
||||
* @param $value
|
||||
*
|
||||
* @return Permission|void Permission if $name is a string, void if it's a Permission
|
||||
* @return Permission|null Permission if $name is a string, null if it's a Permission
|
||||
*/
|
||||
public function addParent($name, $value){
|
||||
if($name instanceof Permission){
|
||||
$name->getChildren()[$this->getName()] = $value;
|
||||
$name->recalculatePermissibles();
|
||||
return;
|
||||
return null;
|
||||
}else{
|
||||
$perm = Server::getInstance()->getPluginManager()->getPermission($name);
|
||||
if($perm === null){
|
||||
|
@ -89,9 +89,6 @@ class PermissionAttachment{
|
||||
return $this->permissions;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool[]
|
||||
*/
|
||||
public function clearPermissions(){
|
||||
$this->permissions = [];
|
||||
$this->permissible->recalculatePermissions();
|
||||
|
Reference in New Issue
Block a user