Skip to content

WorldDisplayNameChangeEvent ​

final class · pocketmine\event\world\WorldDisplayNameChangeEvent · source

Extends WorldEvent

Called when a world's display name is changed.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\World $world, string $oldName, string $newName)

getNewName() ​

php
public function getNewName() : string

getOldName() ​

php
public function getOldName() : string

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