PocketMine
SimpleCommandMap Class Reference
Inheritance diagram for SimpleCommandMap:
CommandMap

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

Member Function Documentation

clearCommands ( )
Returns
void

Implements CommandMap.

dispatch ( CommandSender  $sender,
  $cmdLine 
)
Parameters
CommandSender$sender
string$cmdLine
Returns
boolean

Implements CommandMap.

getCommand (   $name)
Parameters
string$name
Returns
Command

Implements CommandMap.

getCommands ( )
Returns
Command[]
register (   $fallbackPrefix,
Command  $command,
  $label = null 
)
Parameters
string$fallbackPrefix
Command$command
string$label

Implements CommandMap.

registerAll (   $fallbackPrefix,
array  $commands 
)
Parameters
string$fallbackPrefix
Command[]$commands

Implements CommandMap.

registerServerAliases ( )
Returns
void

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