PHP Class pocketmine\command\SimpleCommandMap

Inheritance: implements pocketmine\command\CommandMap
Show file Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Property Type Description
$commandConfig bool[]
$knownCommands Command[]

Public Methods

Method Description
__construct ( Server $server )
clearCommands ( )
dispatch ( pocketmine\command\CommandSender $sender, $commandLine )
getCommand ( $name )
getCommands ( ) : Command[]
register ( $fallbackPrefix, Command $command, $label = null, $overrideConfig = false )
registerAll ( $fallbackPrefix, array $commands )
registerServerAliases ( ) : void

Private Methods

Method Description
dispatchAdvanced ( pocketmine\command\CommandSender $sender, Command $command, $label, array $args, $offset )
registerAlias ( Command $command, $isAlias, $fallbackPrefix, $label )
setDefaultCommands ( )

Method Details

__construct() public method

public __construct ( Server $server )
$server pocketmine\Server

clearCommands() public method

public clearCommands ( )

dispatch() public method

public dispatch ( pocketmine\command\CommandSender $sender, $commandLine )
$sender pocketmine\command\CommandSender

getCommand() public method

public getCommand ( $name )

getCommands() public method

public getCommands ( ) : Command[]
return Command[]

register() public method

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

registerAll() public method

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

registerServerAliases() public method

public registerServerAliases ( ) : void
return void

Property Details

$commandConfig protected property

protected bool[] $commandConfig
return bool[]

$knownCommands protected property

protected Command[],pocketmine\command $knownCommands
return Command[]