spawnTo() public method

public spawnTo ( Player $player )
$player pocketmine\Player
示例#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);
     }
 }
示例#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);
     }
 }
示例#3
0
 public function spawnTo(Player $player)
 {
     parent::spawnTo($player);
 }