Definition at line 30 of file PluginCommand.php.
◆ __construct()
pocketmine\command\PluginCommand::__construct |
( |
string | $name, |
|
|
private Plugin | $owner, |
|
|
private CommandExecutor | $executor ) |
◆ __toString()
pocketmine\command\Command::__toString |
( |
| ) |
|
|
inherited |
◆ 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 ) |
◆ getAliases()
pocketmine\command\Command::getAliases |
( |
| ) |
|
|
inherited |
- Returns
- string[] @phpstan-return list<string>
Definition at line 194 of file Command.php.
◆ getDescription()
pocketmine\command\Command::getDescription |
( |
| ) |
|
|
inherited |
◆ getExecutor()
pocketmine\command\PluginCommand::getExecutor |
( |
| ) |
|
◆ getLabel()
pocketmine\command\Command::getLabel |
( |
| ) |
|
|
inherited |
◆ getName()
pocketmine\command\Command::getName |
( |
| ) |
|
|
inherited |
◆ getOwningPlugin()
pocketmine\command\PluginCommand::getOwningPlugin |
( |
| ) |
|
◆ getPermissionMessage()
pocketmine\command\Command::getPermissionMessage |
( |
| ) |
|
|
inherited |
◆ getPermissions()
pocketmine\command\Command::getPermissions |
( |
| ) |
|
|
inherited |
◆ getUsage()
pocketmine\command\Command::getUsage |
( |
| ) |
|
|
inherited |
◆ isRegistered()
pocketmine\command\Command::isRegistered |
( |
| ) |
|
|
inherited |
◆ register()
pocketmine\command\Command::register |
( |
CommandMap | $commandMap | ) |
|
|
inherited |
Registers the command into a Command map
Definition at line 160 of file Command.php.
◆ setAliases()
pocketmine\command\Command::setAliases |
( |
array | $aliases | ) |
|
|
inherited |
◆ setDescription()
pocketmine\command\Command::setDescription |
( |
Translatable|string | $description | ) |
|
|
inherited |
◆ setExecutor()
◆ setLabel()
pocketmine\command\Command::setLabel |
( |
string | $name | ) |
|
|
inherited |
◆ setPermission()
pocketmine\command\Command::setPermission |
( |
?string | $permission | ) |
|
|
inherited |
◆ setPermissionMessage()
pocketmine\command\Command::setPermissionMessage |
( |
string | $permissionMessage | ) |
|
|
inherited |
◆ setPermissions()
pocketmine\command\Command::setPermissions |
( |
array | $permissions | ) |
|
|
inherited |
◆ setUsage()
pocketmine\command\Command::setUsage |
( |
Translatable|string | $usage | ) |
|
|
inherited |
◆ testPermission()
pocketmine\command\Command::testPermission |
( |
CommandSender | $target, |
|
|
?string | $permission = null ) |
|
inherited |
◆ testPermissionSilent()
pocketmine\command\Command::testPermissionSilent |
( |
CommandSender | $target, |
|
|
?string | $permission = null ) |
|
inherited |
◆ unregister()
pocketmine\command\Command::unregister |
( |
CommandMap | $commandMap | ) |
|
|
inherited |
◆ $description
Translatable string pocketmine\command\Command::$description = "" |
|
protectedinherited |
◆ $usageMessage
Translatable string pocketmine\command\Command::$usageMessage |
|
protectedinherited |
The documentation for this class was generated from the following file: