Skip to content

CommandSender ​

interface · pocketmine\command\CommandSender · source

Extends Permissible

Methods ​

getLanguage() ​

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

getName() ​

php
public function getName() : string

getScreenLineHeight() ​

php
public function getScreenLineHeight() : int

Returns the line height of the command-sender's screen. Used for determining sizes for command output pagination such as in the /help command.

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

Sets the line height used for command output pagination for this command sender. null will reset it to default.

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