/** * @param Player $player */ public function spawnTo(Player $player) { if ($this->spawned === true and $player->spawned === true and $this->dead !== true and $player->dead !== true and $player->getLevel() === $this->level and $player->canSee($this)) { parent::spawnTo($player); } }
/** * @param Player $player */ public function spawnTo(Player $player) { if ($this->spawned and $player->spawned and $this->isAlive() and $player->isAlive() and $player->getLevel() === $this->level and $player->canSee($this) and !$this->isSpectator()) { parent::spawnTo($player); } }
public function spawnTo(Player $player) { parent::spawnTo($player); }