Skip to content

BroadcastLoggerForwarder ​

final class · pocketmine\utils\BroadcastLoggerForwarder · source

Implements CommandSender

Forwards any messages it receives via sendMessage() to the given logger. Used for forwarding chat messages and command audit log messages to the server log file.

Unfortunately, broadcast subscribers are currently required to implement CommandSender, so this class has to include a lot of useless methods.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\Server $server, \Logger $logger, \pocketmine\lang\Language $language)

getLanguage() ​

php
public function getLanguage() : \pocketmine\lang\Language

getName() ​

php
public function getName() : string

getScreenLineHeight() ​

php
public function getScreenLineHeight() : int

getServer() ​

php
public function getServer() : \pocketmine\Server

sendMessage() ​

php
public function sendMessage(\pocketmine\lang\Translatable|string $message) : void

setScreenLineHeight() ​

php
public function setScreenLineHeight(?int $height) : void

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