PocketMine
CommandMap Interface Reference
Inheritance diagram for CommandMap:
SimpleCommandMap

Public Member Functions

 registerAll ($fallbackPrefix, array $commands)
 
 register ($fallbackPrefix, Command $command, $label=null)
 
 dispatch (CommandSender $sender, $cmdLine)
 
 clearCommands ()
 
 getCommand ($name)
 

Member Function Documentation

clearCommands ( )
Returns
void

Implemented in SimpleCommandMap.

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

Implemented in SimpleCommandMap.

getCommand (   $name)
Parameters
string$name
Returns
Command

Implemented in SimpleCommandMap.

register (   $fallbackPrefix,
Command  $command,
  $label = null 
)
Parameters
string$fallbackPrefix
Command$command
string$label

Implemented in SimpleCommandMap.

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

Implemented in SimpleCommandMap.


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