Loading [MathJax]/jax/input/TeX/config.js
PocketMine-MP 5.23.3 git-4a4572131f27ab967701ceaaf2020cfbe26e375c
All Classes Namespaces Functions Variables Enumerations Enumerator Pages
pocketmine\command\SimpleCommandMap Class Reference
+ Inheritance diagram for pocketmine\command\SimpleCommandMap:
+ Collaboration diagram for pocketmine\command\SimpleCommandMap:

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 = []
 

Detailed Description

Definition at line 83 of file SimpleCommandMap.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\command\SimpleCommandMap::__construct ( private Server $server)

Definition at line 91 of file SimpleCommandMap.php.

Member Function Documentation

◆ clearCommands()

pocketmine\command\SimpleCommandMap::clearCommands ( )

Implements pocketmine\command\CommandMap.

Definition at line 232 of file SimpleCommandMap.php.

◆ dispatch()

pocketmine\command\SimpleCommandMap::dispatch ( CommandSender $sender,
string $commandLine )

Implements pocketmine\command\CommandMap.

Definition at line 208 of file SimpleCommandMap.php.

◆ getCommand()

pocketmine\command\SimpleCommandMap::getCommand ( string $name)

Implements pocketmine\command\CommandMap.

Definition at line 240 of file SimpleCommandMap.php.

◆ getCommands()

pocketmine\command\SimpleCommandMap::getCommands ( )
Returns
Command[] @phpstan-return array<string, Command>

Definition at line 248 of file SimpleCommandMap.php.

◆ register()

pocketmine\command\SimpleCommandMap::register ( string $fallbackPrefix,
Command $command,
?string $label = null )

Implements pocketmine\command\CommandMap.

Definition at line 147 of file SimpleCommandMap.php.

◆ registerAll()

pocketmine\command\SimpleCommandMap::registerAll ( string $fallbackPrefix,
array $commands )
Parameters
Command[]$commands

Implements pocketmine\command\CommandMap.

Definition at line 141 of file SimpleCommandMap.php.

◆ registerServerAliases()

pocketmine\command\SimpleCommandMap::registerServerAliases ( )

Definition at line 252 of file SimpleCommandMap.php.

◆ unregister()

pocketmine\command\SimpleCommandMap::unregister ( Command $command)

Definition at line 177 of file SimpleCommandMap.php.

Member Data Documentation

◆ $knownCommands

array pocketmine\command\SimpleCommandMap::$knownCommands = []
protected

Definition at line 89 of file SimpleCommandMap.php.


The documentation for this class was generated from the following file: