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(); } }
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 }