VanillaCommand
Extends Command
Implements ParameterizedCommand
Constants
MAX_COORD
public const MAX_COORD = 30000000MIN_COORD
public const MIN_COORD = -30000000Methods
fetchPermittedEntityTargets() 5.46.0 protected
protected function fetchPermittedEntityTargets(\pocketmine\command\CommandSender $sender, ?string $target, string $selfPermission, string $otherPermission) : arrayLike fetchPermittedPlayerTargets(), but the targets may be any entities (selectors like @e[type=cow]).
fetchPermittedPlayerTarget() protected
protected function fetchPermittedPlayerTarget(\pocketmine\command\CommandSender $sender, ?string $target, string $selfPermission, string $otherPermission) : ?\pocketmine\player\PlayerResolves a single player target (a player name or a selector matching one player), or the sender if no target is given, and checks the self/other permission.
fetchPermittedPlayerTargets() 5.46.0 protected
protected function fetchPermittedPlayerTargets(\pocketmine\command\CommandSender $sender, ?string $target, string $selfPermission, string $otherPermission) : arrayResolves player targets (a player name or a target selector), or the sender if no target is given, and checks the self/other permissions (both when the targets include the sender and other players). Returns an empty array if the sender lacks a permission (after telling them). Selector errors throw a TargetSelectorException, which the command map shows to the sender.
getBoundedInt() protected
protected function getBoundedInt(\pocketmine\command\CommandSender $sender, string $input, int $min, int $max) : ?intgetDouble() protected
protected function getDouble(\pocketmine\command\CommandSender $sender, string $value, float $min = self::MIN_COORD, float $max = self::MAX_COORD) : floatgetInteger() protected
protected function getInteger(\pocketmine\command\CommandSender $sender, string $value, int $min = self::MIN_COORD, int $max = self::MAX_COORD) : intgetOverloads() 5.46.0
public function getOverloads() : arrayOverloads advertised to clients; none by default (the command is sent as taking free text).
getRelativeDouble() protected
protected function getRelativeDouble(float $original, \pocketmine\command\CommandSender $sender, string $input, float $min = self::MIN_COORD, float $max = self::MAX_COORD) : float