setSpawn() public method

Sets the spawnpoint of the player (and the compass direction) to a Vector3, or set it on another world with a Position object
public setSpawn ( Vector3 $pos )
$pos pocketmine\math\Vector3
示例#1
0
 public function setSpawnOnPlayer(Player $player)
 {
     $player->setSpawn(Settings::loginSpawn($this->getServer()));
 }