Skip to content

BlockCommandSender 5.47.0 ​

interface · pocketmine\command\BlockCommandSender · source

Extends CommandSender

A command sender acting for a block (e.g. a command block): target selectors and distances are evaluated from the centre of that block, and there is no executing entity (@s selects nothing).

Methods ​

getExecutingPosition() ​

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

Returns the centre of the block the commands are run by.

VanillaMine is a fork of PocketMine-MP. Not affiliated with the PMMP team or Mojang.