PHP Interface pocketmine\command\CommandMap

Mostrar archivo Open project: ClearSkyTeam/ClearSky Interface Usage Examples

Public Methods

Method Description
clearCommands ( ) : void
dispatch ( pocketmine\command\CommandSender $sender, string $cmdLine ) : boolean
getCommand ( string $name ) : Command
register ( string $fallbackPrefix, Command $command, string $label = null )
registerAll ( string $fallbackPrefix, array $commands )

Method Details

clearCommands() public method

public clearCommands ( ) : void
return void

dispatch() public method

public dispatch ( pocketmine\command\CommandSender $sender, string $cmdLine ) : boolean
$sender pocketmine\command\CommandSender
$cmdLine string
return boolean

getCommand() public method

public getCommand ( string $name ) : Command
$name string
return Command

register() public method

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

registerAll() public method

public registerAll ( string $fallbackPrefix, array $commands )
$fallbackPrefix string
$commands array