recalculatePermissions() public method

 public function resetPerms(Player $pl)
 {
     $n = strtolower($pl->getName());
     if (isset($this->perms[$n])) {
         $attach = $this->perms[$n];
         unset($this->perms[$n]);
         $pl->removeAttachment($attach);
         $pl->recalculatePermissions();
     }
 }
Example #2
0
 public function resetPerms(Player $pl)
 {
     //echo  __METHOD__.",".__LINE__."\n";//##DEBUG
     $n = strtolower($pl->getName());
     if (isset($this->perms[$n])) {
         //echo __METHOD__.",".__LINE__."\n";//##DEBUG
         $attach = $this->perms[$n];
         unset($this->perms[$n]);
         $pl->removeAttachment($attach);
         $pl->recalculatePermissions();
     }
     //echo __METHOD__.",".__LINE__."\n";//##DEBUG
 }