PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (private Server $server) | |
clearCommands () | |
dispatch (CommandSender $sender, string $commandLine) | |
getCommand (string $name) | |
getCommands () | |
register (string $fallbackPrefix, Command $command, ?string $label=null) | |
registerAll (string $fallbackPrefix, array $commands) | |
registerServerAliases () | |
unregister (Command $command) | |
Protected Attributes | |
array | $knownCommands = [] |
Definition at line 82 of file SimpleCommandMap.php.
pocketmine\command\SimpleCommandMap::__construct | ( | private Server | $server | ) |
Definition at line 87 of file SimpleCommandMap.php.
pocketmine\command\SimpleCommandMap::clearCommands | ( | ) |
Implements pocketmine\command\CommandMap.
Definition at line 228 of file SimpleCommandMap.php.
pocketmine\command\SimpleCommandMap::dispatch | ( | CommandSender | $sender, |
string | $commandLine ) |
Implements pocketmine\command\CommandMap.
Definition at line 204 of file SimpleCommandMap.php.
pocketmine\command\SimpleCommandMap::getCommand | ( | string | $name | ) |
Implements pocketmine\command\CommandMap.
Definition at line 236 of file SimpleCommandMap.php.
pocketmine\command\SimpleCommandMap::getCommands | ( | ) |
Definition at line 243 of file SimpleCommandMap.php.
pocketmine\command\SimpleCommandMap::register | ( | string | $fallbackPrefix, |
Command | $command, | ||
?string | $label = null ) |
Implements pocketmine\command\CommandMap.
Definition at line 143 of file SimpleCommandMap.php.
pocketmine\command\SimpleCommandMap::registerAll | ( | string | $fallbackPrefix, |
array | $commands ) |
Command[] | $commands |
Implements pocketmine\command\CommandMap.
Definition at line 137 of file SimpleCommandMap.php.
pocketmine\command\SimpleCommandMap::registerServerAliases | ( | ) |
Definition at line 247 of file SimpleCommandMap.php.
pocketmine\command\SimpleCommandMap::unregister | ( | Command | $command | ) |
Definition at line 173 of file SimpleCommandMap.php.
|
protected |
Definition at line 85 of file SimpleCommandMap.php.