Skip to content

PlayerDisplayNameChangeEvent ​

class · pocketmine\event\player\PlayerDisplayNameChangeEvent · source

Extends PlayerEvent

Methods ​

__construct() ​

php
public function __construct(\pocketmine\player\Player $player, 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.