public function addAttachment(Plugin $plugin, $name = null, $value = null) { if ($this->perm == null) { return false; } return $this->perm->addAttachment($plugin, $name, $value); }
/** * @param Player $player * @return mixed */ public function getAttachment(Player $player) { if (!isset($this->attachments[$player->getName()])) { $this->attachments[$player->getName()] = $player->addAttachment($this); } return $this->attachments[$player->getName()]; }