Skip to content

EntityCommandSender 5.46.0 ​

interface · pocketmine\command\EntityCommandSender · source

Extends CommandSender

A command sender acting for an entity that isn't a command sender itself (e.g. a command block minecart): target selectors and relative coordinates are evaluated from that entity (@s is the entity).

Methods ​

getExecutingEntity() ​

php
public function getExecutingEntity() : \pocketmine\entity\Entity

Returns the entity the commands are run as.

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