spawnTo() public method

public spawnTo ( Player $player )
$player pocketmine\Player
Esempio n. 1
0
 /**
  * @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);
     }
 }
Esempio n. 2
0
 /**
  * @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);
     }
 }
Esempio n. 3
0
 public function spawnTo(Player $player)
 {
     parent::spawnTo($player);
 }