Skip to content

SpawnChangeEvent ​

class · pocketmine\event\world\SpawnChangeEvent · source

Extends WorldEvent

An event that is called when a world spawn changes. The previous spawn is included

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\World $world, \pocketmine\world\Position $previousSpawn)

getPreviousSpawn() ​

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

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