Skip to content

CommandBlockSender 5.47.0 ​

final class · pocketmine\block\tile\CommandBlockSender · source

Implements BlockCommandSender

The sender of the commands of a command block, named after the block's custom name, "!" by default like Bedrock. It has the operator permissions except the admin ones (CommandBlockPermissions). Its output becomes the block's last output.

Constants ​

DEFAULT_NAME ​

php
public const DEFAULT_NAME = "!"

Methods ​

__construct() ​

php
public function __construct(\pocketmine\block\tile\CommandBlock $commandBlock)

getCommandBlock() ​

php
public function getCommandBlock() : \pocketmine\block\tile\CommandBlock

getExecutingPosition() ​

php
public function getExecutingPosition() : \pocketmine\world\Position

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. Not affiliated with the PMMP team or Mojang.