PocketMine-MP 5.33.2 git-1133d49c924b4358c79d44eeb97dcbf56cb4d1eb
|
Public Member Functions | |
format (string $username, string $message) | |
Formats chat messages for broadcasting. Used in PlayerChatEvent.
Definition at line 31 of file ChatFormatter.php.
pocketmine\player\chat\ChatFormatter::format | ( | string | $username, |
string | $message ) |
Returns the formatted message to broadcast. This can return a plain string (which will be used as-is) or a Translatable (which will be translated into each recipient's language).
Implemented in pocketmine\player\chat\LegacyRawChatFormatter, and pocketmine\player\chat\StandardChatFormatter.