Skip to content

PlayerRespawnEvent ​

class · pocketmine\event\player\PlayerRespawnEvent · source

Extends PlayerEvent

Called when a player is respawned

Properties ​

$position ​

php
public \pocketmine\world\Position $position

Methods ​

__construct() ​

php
public function __construct(\pocketmine\player\Player $player, \pocketmine\world\Position $position)

getRespawnPosition() ​

php
public function getRespawnPosition() : \pocketmine\world\Position

setRespawnPosition() ​

php
public function setRespawnPosition(\pocketmine\world\Position $position) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.