Skip to content

TargetSelectorException 5.46.0 ​

class · pocketmine\command\selector\TargetSelectorException · source

Extends CommandException

Thrown when a target selector cannot be parsed or matches nothing. The command map shows the message to the sender (in red), so commands may let it propagate.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\lang\Translatable $translatable, ?\Throwable $previous = null)

getTranslatable() ​

php
public function getTranslatable() : \pocketmine\lang\Translatable

Message for the command sender.

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