Skip to content

SimpleCommandMap ​

class · pocketmine\command\SimpleCommandMap · source

Implements CommandMap

Properties ​

$knownCommands protected ​

php
protected array $knownCommands

Methods ​

__construct() ​

php
public function __construct(\pocketmine\Server $server)

clearCommands() ​

php
public function clearCommands() : void

dispatch() ​

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

getCommand() ​

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

getCommands() ​

php
public function getCommands() : array

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

registerServerAliases() ​

php
public function registerServerAliases() : void

unregister() ​

php
public function unregister(\pocketmine\command\Command $command) : bool

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