PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\command\SimpleCommandMap Class Reference
+ Inheritance diagram for pocketmine\command\SimpleCommandMap:
+ Collaboration diagram for pocketmine\command\SimpleCommandMap:

Public Member Functions

 __construct (Server $server)
 
 registerAll ($fallbackPrefix, array $commands)
 
 register ($fallbackPrefix, Command $command, $label=null)
 
 dispatch (CommandSender $sender, $commandLine)
 
 clearCommands ()
 
 getCommand ($name)
 
 getCommands ()
 
 registerServerAliases ()
 

Protected Attributes

 $knownCommands = []
 

Detailed Description

Definition at line 61 of file SimpleCommandMap.php.

Member Function Documentation

pocketmine\command\SimpleCommandMap::clearCommands ( )
Returns
void

Implements pocketmine\command\CommandMap.

Definition at line 195 of file SimpleCommandMap.php.

pocketmine\command\SimpleCommandMap::dispatch ( CommandSender  $sender,
  $cmdLine 
)
Parameters
CommandSender$sender
string$cmdLine
Returns
boolean

Implements pocketmine\command\CommandMap.

Definition at line 167 of file SimpleCommandMap.php.

References pocketmine\command\SimpleCommandMap\getCommand(), and pocketmine\command\CommandSender\getServer().

+ Here is the call graph for this function:

pocketmine\command\SimpleCommandMap::getCommand (   $name)
Parameters
string$name
Returns
Command

Implements pocketmine\command\CommandMap.

Definition at line 203 of file SimpleCommandMap.php.

Referenced by pocketmine\command\SimpleCommandMap\dispatch(), and pocketmine\command\SimpleCommandMap\registerServerAliases().

+ Here is the caller graph for this function:

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

Definition at line 214 of file SimpleCommandMap.php.

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

Implements pocketmine\command\CommandMap.

Definition at line 122 of file SimpleCommandMap.php.

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

Implements pocketmine\command\CommandMap.

Definition at line 116 of file SimpleCommandMap.php.

pocketmine\command\SimpleCommandMap::registerServerAliases ( )
Returns
void

Definition at line 222 of file SimpleCommandMap.php.

References pocketmine\command\SimpleCommandMap\getCommand().

+ Here is the call graph for this function:


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