Skip to content

CommandMap ​

interface · pocketmine\command\CommandMap · source

Methods ​

clearCommands() ​

php
public function clearCommands() : void

dispatch() ​

php
public function dispatch(\pocketmine\command\CommandSender $sender, string $cmdLine) : bool

getCommand() ​

php
public function getCommand(string $name) : ?\pocketmine\command\Command

register() ​

php
public function register(string $fallbackPrefix, \pocketmine\command\Command $command, ?string $label = null) : bool

registerAll() ​

php
public function registerAll(string $fallbackPrefix, array $commands) : void

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