ChatFormatter
Formats chat messages for broadcasting. Used in PlayerChatEvent.
Methods
format()
php
public function format(string $username, string $message) : \pocketmine\lang\Translatable|stringReturns 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).
