PocketMine-MP 5.15.1 git-5ef247620a7c6301a849b54e5ef1009217729fc8
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 81 of file SimpleCommandMap.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 86 of file SimpleCommandMap.php.

Member Function Documentation

◆ clearCommands()

pocketmine\command\SimpleCommandMap::clearCommands ( )

Implements pocketmine\command\CommandMap.

Definition at line 226 of file SimpleCommandMap.php.

◆ dispatch()

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

Implements pocketmine\command\CommandMap.

Definition at line 202 of file SimpleCommandMap.php.

◆ getCommand()

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

Implements pocketmine\command\CommandMap.

Definition at line 234 of file SimpleCommandMap.php.

◆ getCommands()

pocketmine\command\SimpleCommandMap::getCommands ( )
Returns
Command[]

Definition at line 241 of file SimpleCommandMap.php.

◆ register()

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

Implements pocketmine\command\CommandMap.

Definition at line 141 of file SimpleCommandMap.php.

◆ registerAll()

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

Implements pocketmine\command\CommandMap.

Definition at line 135 of file SimpleCommandMap.php.

◆ registerServerAliases()

pocketmine\command\SimpleCommandMap::registerServerAliases ( )

Definition at line 245 of file SimpleCommandMap.php.

◆ unregister()

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

Definition at line 171 of file SimpleCommandMap.php.

Member Data Documentation

◆ $knownCommands

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

Definition at line 84 of file SimpleCommandMap.php.


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