Skip to content

TeleportCommand ​

class · pocketmine\command\defaults\TeleportCommand · source

Extends VanillaCommand
Implements ExhaustiveOverloads

Bedrock syntax, each optionally preceded by <victim: target> (default: the sender):

  • /tp <destination: target> [checkForBlocks]
  • /tp <destination: x y z> [yRot] [xRot] [checkForBlocks]
  • /tp <destination: x y z> facing <lookAtPosition: x y z> [checkForBlocks]
  • /tp <destination: x y z> facing <lookAtEntity: target> [checkForBlocks] Victims may be any entities (e.g. /tp @e[type=cow] @s). Relative (~) and local (^) coordinates are relative to the sender, or to each victim when the console runs the command; ~ rotations are relative to each victim's. checkForBlocks is accepted but not checked.

Methods ​

__construct() ​

php
public function __construct()

execute() ​

php
public function execute(\pocketmine\command\CommandSender $sender, string $commandLabel, array $args)

getOverloads() 5.46.0 ​

php
public function getOverloads() : array

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