|
| | __construct (string $namespace, string $name, private Plugin $owner, private CommandExecutor $executor, Translatable|string $description="", Translatable|string|null $usageMessage=null) |
| |
| | execute (CommandSender $sender, string $commandLabel, array $args) |
| |
| | getDescription () |
| |
| | getExecutor () |
| |
| | getId () |
| |
| | getName () |
| |
| | getNamespace () |
| |
| | getOwningPlugin () |
| |
| | getPermissionMessage () |
| |
| | getPermissions () |
| |
| | getUsage () |
| |
| | setDescription (Translatable|string $description) |
| |
| | setExecutor (CommandExecutor $executor) |
| |
| | 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) |
| |
Definition at line 31 of file PluginCommand.php.
◆ __construct()
| pocketmine\command\PluginCommand::__construct |
( |
string | $namespace, |
|
|
string | $name, |
|
|
private Plugin | $owner, |
|
|
private CommandExecutor | $executor, |
|
|
Translatable|string | $description = "", |
|
|
Translatable|string|null | $usageMessage = null ) |
◆ broadcastCommandMessage()
| static pocketmine\command\Command::broadcastCommandMessage |
( |
CommandSender | $source, |
|
|
Translatable|string | $message, |
|
|
bool | $sendToSource = true ) |
|
staticinherited |
◆ execute()
| pocketmine\command\PluginCommand::execute |
( |
CommandSender | $sender, |
|
|
string | $commandLabel, |
|
|
array | $args ) |
◆ getDescription()
| pocketmine\command\Command::getDescription |
( |
| ) |
|
|
inherited |
◆ getExecutor()
| pocketmine\command\PluginCommand::getExecutor |
( |
| ) |
|
◆ getId()
| pocketmine\command\Command::getId |
( |
| ) |
|
|
finalinherited |
◆ getName()
| pocketmine\command\Command::getName |
( |
| ) |
|
|
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.
◆ getNamespace()
| pocketmine\command\Command::getNamespace |
( |
| ) |
|
|
finalinherited |
◆ getOwningPlugin()
| pocketmine\command\PluginCommand::getOwningPlugin |
( |
| ) |
|
◆ getPermissionMessage()
| pocketmine\command\Command::getPermissionMessage |
( |
| ) |
|
|
inherited |
◆ getPermissions()
| pocketmine\command\Command::getPermissions |
( |
| ) |
|
|
inherited |
◆ getUsage()
| pocketmine\command\Command::getUsage |
( |
| ) |
|
|
inherited |
◆ setDescription()
| pocketmine\command\Command::setDescription |
( |
Translatable|string | $description | ) |
|
|
inherited |
◆ setExecutor()
◆ setPermission()
| pocketmine\command\Command::setPermission |
( |
?string | $permission | ) |
|
|
inherited |
◆ setPermissionMessage()
| pocketmine\command\Command::setPermissionMessage |
( |
Translatable|string | $permissionMessage | ) |
|
|
inherited |
◆ setPermissions()
| pocketmine\command\Command::setPermissions |
( |
array | $permissions | ) |
|
|
inherited |
◆ setUsage()
| pocketmine\command\Command::setUsage |
( |
Translatable|string|null | $usage | ) |
|
|
inherited |
◆ testPermission()
| pocketmine\command\Command::testPermission |
( |
string | $context, |
|
|
CommandSender | $target, |
|
|
?string | $permission = null ) |
|
inherited |
◆ testPermissionSilent()
| pocketmine\command\Command::testPermissionSilent |
( |
CommandSender | $target, |
|
|
?string | $permission = null ) |
|
inherited |
The documentation for this class was generated from the following file: