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
ファイル: LegionPE.php プロジェクト: LegionPE/LegionPE-Eta
 public function setSpawnOnPlayer(Player $player)
 {
     $player->setSpawn(Settings::loginSpawn($this->getServer()));
 }