Method |
Description |
|
__construct ( string $name, string $description = "", string $usageMessage = null, array $aliases = [] ) |
|
|
__toString ( ) : string |
|
|
broadcastCommandMessage ( pocketmine\command\CommandSender $source, string $message, boolean $sendToSource = true ) |
|
|
execute ( pocketmine\command\CommandSender $sender, string $commandLabel, array $args ) : mixed |
|
|
getAliases ( ) : string[] |
|
|
getDescription ( ) : string |
|
|
getLabel ( ) : string |
|
|
getName ( ) : string |
|
|
getPermission ( ) : string |
|
|
getPermissionMessage ( ) : string |
|
|
getUsage ( ) : string |
|
|
isRegistered ( ) : boolean |
|
|
register ( pocketmine\command\CommandMap $commandMap ) : boolean |
Registers the command into a Command map |
|
setAliases ( array $aliases ) |
|
|
setDescription ( string $description ) |
|
|
setLabel ( $name ) |
|
|
setPermission ( string | null $permission ) |
|
|
setPermissionMessage ( string $permissionMessage ) |
|
|
setUsage ( string $usage ) |
|
|
testPermission ( pocketmine\command\CommandSender $target ) : boolean |
|
|
testPermissionSilent ( pocketmine\command\CommandSender $target ) : boolean |
|
|
unregister ( pocketmine\command\CommandMap $commandMap ) : boolean |
|
|