PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
Loading...
Searching...
No Matches
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 82 of file SimpleCommandMap.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 87 of file SimpleCommandMap.php.

Member Function Documentation

◆ clearCommands()

pocketmine\command\SimpleCommandMap::clearCommands ( )

Implements pocketmine\command\CommandMap.

Definition at line 228 of file SimpleCommandMap.php.

◆ dispatch()

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

Implements pocketmine\command\CommandMap.

Definition at line 204 of file SimpleCommandMap.php.

◆ getCommand()

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

Implements pocketmine\command\CommandMap.

Definition at line 236 of file SimpleCommandMap.php.

◆ getCommands()

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

Definition at line 243 of file SimpleCommandMap.php.

◆ register()

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

Implements pocketmine\command\CommandMap.

Definition at line 143 of file SimpleCommandMap.php.

◆ registerAll()

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

Implements pocketmine\command\CommandMap.

Definition at line 137 of file SimpleCommandMap.php.

◆ registerServerAliases()

pocketmine\command\SimpleCommandMap::registerServerAliases ( )

Definition at line 247 of file SimpleCommandMap.php.

◆ unregister()

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

Definition at line 173 of file SimpleCommandMap.php.

Member Data Documentation

◆ $knownCommands

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

Definition at line 85 of file SimpleCommandMap.php.


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