PlayerChatEvent
Extends PlayerEvent
Implements Cancellable
Called when a player chats something
Properties
$formatter
php
public \pocketmine\player\chat\ChatFormatter $formatter$message
php
public string $message$recipients
php
public array $recipientsMethods
__construct()
php
public function __construct(\pocketmine\player\Player $player, string $message, array $recipients, \pocketmine\player\chat\ChatFormatter $formatter)getFormatter()
php
public function getFormatter() : \pocketmine\player\chat\ChatFormattergetMessage()
php
public function getMessage() : stringgetRecipients()
php
public function getRecipients() : arraysetFormatter()
php
public function setFormatter(\pocketmine\player\chat\ChatFormatter $formatter) : voidsetMessage()
php
public function setMessage(string $message) : voidsetPlayer()
php
public function setPlayer(\pocketmine\player\Player $player) : voidChanges the player that is sending the message
setRecipients()
php
public function setRecipients(array $recipients) : void