public function addItem(...$slots) { $result = parent::addItem(...$slots); if ($this->getHolder() instanceof Player) { if ($this->getHolder()->isSurvival()) { $this->sendContents($this->getHolder()); } } return $result; }
public function addItem(...$slots) { $result = parent::addItem(...$slots); $this->sendContents($this->getHolder()); return $result; }