|
PocketMine-MP 5.36.1 git-eaa7c4834c8fe2f379d24e7f0ee6cc63cfb18ccc
|
Inheritance diagram for pocketmine\command\ClosureCommand:
Collaboration diagram for pocketmine\command\ClosureCommand:Public Member Functions | |
| __construct (string $namespace, string $name, \Closure $execute, array $permissions, Translatable|string $description="", Translatable|string|null $usageMessage=null,) | |
| execute (CommandSender $sender, string $commandLabel, array $args) | |
| getDescription () | |
| getId () | |
| getName () | |
| getNamespace () | |
| getPermissionMessage () | |
| getPermissions () | |
| getUsage () | |
| setDescription (Translatable|string $description) | |
| setPermission (?string $permission) | |
| setPermissionMessage (Translatable|string $permissionMessage) | |
| setPermissions (array $permissions) | |
| setUsage (Translatable|string|null $usage) | |
| testPermission (string $context, CommandSender $target, ?string $permission=null) | |
| testPermissionSilent (CommandSender $target, ?string $permission=null) | |
Static Public Member Functions | |
| static | broadcastCommandMessage (CommandSender $source, Translatable|string $message, bool $sendToSource=true) |
@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 | $namespace, |
| string | $name, | ||
| \Closure | $execute, | ||
| array | $permissions, | ||
| Translatable|string | $description = "", | ||
| Translatable|string|null | $usageMessage = null ) |
| string[] | $permissions | @phpstan-param Execute $execute |
Definition at line 40 of file ClosureCommand.php.
References pocketmine\command\ClosureCommand\execute(), and pocketmine\command\Command\setPermissions().
Here is the call graph for this function:
|
staticinherited |
Definition at line 175 of file Command.php.
| pocketmine\command\ClosureCommand::execute | ( | CommandSender | $sender, |
| string | $commandLabel, | ||
| array | $args ) |
| string[] | $args | @phpstan-param list<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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inherited |
Definition at line 155 of file Command.php.
|
finalinherited |
Returns the globally unique ID for the command. This typically looks like namespace:name
Definition at line 92 of file Command.php.
Referenced by pocketmine\command\defaults\CommandAliasCommand\execute().
Here is the caller graph for this function:
|
finalinherited |
Returns the local identifier of the command (without namespace or leading slash). This cannot be changed after creation.
Definition at line 85 of file Command.php.
|
finalinherited |
Definition at line 77 of file Command.php.
|
inherited |
Definition at line 151 of file Command.php.
|
inherited |
Definition at line 99 of file Command.php.
|
inherited |
Definition at line 159 of file Command.php.
|
inherited |
Definition at line 163 of file Command.php.
|
inherited |
Definition at line 116 of file Command.php.
|
inherited |
Definition at line 167 of file Command.php.
|
inherited |
| string[] | $permissions |
Definition at line 106 of file Command.php.
Referenced by pocketmine\command\ClosureCommand\__construct().
Here is the caller graph for this function:
|
inherited |
Definition at line 171 of file Command.php.
|
inherited |
| string | $context | usually the command name, but may include extra args if useful (e.g. for subcommands) |
| CommandSender | $target | the target to check the permission for |
| string | null | $permission | the permission to check, if null, will check if the target has any of the command's permissions |
Definition at line 125 of file Command.php.
Referenced by pocketmine\command\defaults\CommandAliasCommand\execute(), pocketmine\command\defaults\TimeCommand\execute(), and pocketmine\command\defaults\WhitelistCommand\execute().
Here is the caller graph for this function:
|
inherited |
Definition at line 140 of file Command.php.