public function removeAttachment(PermissionAttachment $attachment) { if ($this->perm == null) { return false; } $this->perm->removeAttachment($attachment); return true; }
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(); } }