PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
__construct (string $name, \Closure $execute, array $permissions, Translatable|string $description="", Translatable|string|null $usageMessage=null, array $aliases=[]) | |
__toString () | |
execute (CommandSender $sender, string $commandLabel, array $args) | |
getAliases () | |
getDescription () | |
getLabel () | |
getName () | |
getPermissionMessage () | |
getPermissions () | |
getUsage () | |
isRegistered () | |
register (CommandMap $commandMap) | |
setAliases (array $aliases) | |
setDescription (Translatable|string $description) | |
setLabel (string $name) | |
setPermission (?string $permission) | |
setPermissionMessage (string $permissionMessage) | |
setPermissions (array $permissions) | |
setUsage (Translatable|string $usage) | |
testPermission (CommandSender $target, ?string $permission=null) | |
testPermissionSilent (CommandSender $target, ?string $permission=null) | |
unregister (CommandMap $commandMap) | |
Static Public Member Functions | |
static | broadcastCommandMessage (CommandSender $source, Translatable|string $message, bool $sendToSource=true) |
Protected Attributes | |
Translatable string | $description = "" |
Translatable string | $usageMessage |
@phpstan-type Execute \Closure(CommandSender $sender, Command $command, string $commandLabel, list<string> $args) : mixed
Definition at line 32 of file ClosureCommand.php.
pocketmine\command\ClosureCommand::__construct | ( | string | $name, |
\Closure | $execute, | ||
array | $permissions, | ||
Translatable|string | $description = "", | ||
Translatable|string|null | $usageMessage = null, | ||
array | $aliases = [] ) |
string[] | $permissions | @phpstan-param Execute $execute |
Definition at line 40 of file ClosureCommand.php.
References pocketmine\command\ClosureCommand\execute(), and pocketmine\command\Command\setPermissions().
|
inherited |
Definition at line 251 of file Command.php.
|
staticinherited |
Definition at line 233 of file Command.php.
pocketmine\command\ClosureCommand::execute | ( | CommandSender | $sender, |
string | $commandLabel, | ||
array | $args ) |
string[] | $args |
CommandException |
Reimplemented from pocketmine\command\Command.
Definition at line 57 of file ClosureCommand.php.
References pocketmine\command\ClosureCommand\execute().
Referenced by pocketmine\command\ClosureCommand\__construct(), and pocketmine\command\ClosureCommand\execute().
|
inherited |
Definition at line 194 of file Command.php.
|
inherited |
Definition at line 202 of file Command.php.
|
inherited |
Definition at line 142 of file Command.php.
|
inherited |
Definition at line 89 of file Command.php.
|
inherited |
Definition at line 198 of file Command.php.
|
inherited |
Definition at line 96 of file Command.php.
|
inherited |
Definition at line 206 of file Command.php.
|
inherited |
Definition at line 186 of file Command.php.
|
inherited |
Registers the command into a Command map
Definition at line 160 of file Command.php.
|
inherited |
string[] | $aliases | @phpstan-param list<string> $aliases |
Definition at line 214 of file Command.php.
Referenced by pocketmine\command\Command\__construct().
|
inherited |
Definition at line 221 of file Command.php.
|
inherited |
Definition at line 146 of file Command.php.
|
inherited |
Definition at line 113 of file Command.php.
|
inherited |
Definition at line 225 of file Command.php.
|
inherited |
string[] | $permissions |
Definition at line 103 of file Command.php.
Referenced by pocketmine\command\ClosureCommand\__construct().
|
inherited |
Definition at line 229 of file Command.php.
|
inherited |
Definition at line 117 of file Command.php.
|
inherited |
Definition at line 131 of file Command.php.
|
inherited |
Definition at line 170 of file Command.php.
|
protectedinherited |
Definition at line 61 of file Command.php.
|
protectedinherited |
Definition at line 63 of file Command.php.