PHP Class pocketmine\command\SimpleCommandMap

Inheritance: implements pocketmine\command\CommandMap
Afficher le fichier Open project: iTXTech/Genisys Class Usage Examples

Protected Properties

Свойство Type Description
$commandConfig bool[]
$knownCommands Command[]

Méthodes publiques

Méthode 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

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

Method Details

__construct() public méthode

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

clearCommands() public méthode

public clearCommands ( )

dispatch() public méthode

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

getCommand() public méthode

public getCommand ( $name )

getCommands() public méthode

public getCommands ( ) : Command[]
Résultat Command[]

register() public méthode

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

registerAll() public méthode

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

registerServerAliases() public méthode

public registerServerAliases ( ) : void
Résultat void

Property Details

$commandConfig protected_oe property

protected bool[] $commandConfig
Résultat bool[]

$knownCommands protected_oe property

protected Command[],pocketmine\command $knownCommands
Résultat Command[]