PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (string $name, 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 (Translatable|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 |
Definition at line 40 of file Command.php.
pocketmine\command\Command::__construct | ( | string | $name, |
Translatable|string | $description = "", | ||
Translatable|string|null | $usageMessage = null, | ||
array | $aliases = [] ) |
string[] | $aliases |
Definition at line 66 of file Command.php.
References pocketmine\command\Command\setAliases().
pocketmine\command\Command::__toString | ( | ) |
Definition at line 243 of file Command.php.
|
static |
Definition at line 225 of file Command.php.
|
abstract |
string[] | $args |
CommandException |
Reimplemented in pocketmine\command\defaults\BanCommand, pocketmine\command\defaults\BanIpCommand, pocketmine\command\defaults\BanListCommand, pocketmine\command\defaults\ClearCommand, pocketmine\command\defaults\DefaultGamemodeCommand, pocketmine\command\defaults\DeopCommand, pocketmine\command\defaults\DifficultyCommand, pocketmine\command\defaults\DumpMemoryCommand, pocketmine\command\defaults\EffectCommand, pocketmine\command\defaults\EnchantCommand, pocketmine\command\defaults\GamemodeCommand, pocketmine\command\defaults\GarbageCollectorCommand, pocketmine\command\defaults\GiveCommand, pocketmine\command\defaults\HelpCommand, pocketmine\command\defaults\KickCommand, pocketmine\command\defaults\KillCommand, pocketmine\command\defaults\ListCommand, pocketmine\command\defaults\MeCommand, pocketmine\command\defaults\OpCommand, pocketmine\command\defaults\PardonCommand, pocketmine\command\defaults\PardonIpCommand, pocketmine\command\defaults\ParticleCommand, pocketmine\command\defaults\PluginsCommand, pocketmine\command\defaults\SaveCommand, pocketmine\command\defaults\SaveOffCommand, pocketmine\command\defaults\SaveOnCommand, pocketmine\command\defaults\SayCommand, pocketmine\command\defaults\SeedCommand, pocketmine\command\defaults\SetWorldSpawnCommand, pocketmine\command\defaults\SpawnpointCommand, pocketmine\command\defaults\StatusCommand, pocketmine\command\defaults\StopCommand, pocketmine\command\defaults\TeleportCommand, pocketmine\command\defaults\TellCommand, pocketmine\command\defaults\TimeCommand, pocketmine\command\defaults\TimingsCommand, pocketmine\command\defaults\TitleCommand, pocketmine\command\defaults\TransferServerCommand, pocketmine\command\defaults\VersionCommand, pocketmine\command\defaults\WhitelistCommand, pocketmine\command\defaults\XpCommand, pocketmine\command\FormattedCommandAlias, and pocketmine\command\PluginCommand.
pocketmine\command\Command::getAliases | ( | ) |
Definition at line 187 of file Command.php.
pocketmine\command\Command::getDescription | ( | ) |
Definition at line 195 of file Command.php.
pocketmine\command\Command::getLabel | ( | ) |
Definition at line 136 of file Command.php.
pocketmine\command\Command::getName | ( | ) |
Definition at line 82 of file Command.php.
pocketmine\command\Command::getPermissionMessage | ( | ) |
Definition at line 191 of file Command.php.
pocketmine\command\Command::getPermissions | ( | ) |
Definition at line 89 of file Command.php.
pocketmine\command\Command::getUsage | ( | ) |
Definition at line 199 of file Command.php.
pocketmine\command\Command::isRegistered | ( | ) |
Definition at line 180 of file Command.php.
pocketmine\command\Command::register | ( | CommandMap | $commandMap | ) |
Registers the command into a Command map
Definition at line 154 of file Command.php.
pocketmine\command\Command::setAliases | ( | array | $aliases | ) |
string[] | $aliases |
Definition at line 206 of file Command.php.
Referenced by pocketmine\command\Command\__construct().
pocketmine\command\Command::setDescription | ( | Translatable|string | $description | ) |
Definition at line 213 of file Command.php.
pocketmine\command\Command::setLabel | ( | string | $name | ) |
Definition at line 140 of file Command.php.
pocketmine\command\Command::setPermission | ( | ?string | $permission | ) |
Definition at line 106 of file Command.php.
pocketmine\command\Command::setPermissionMessage | ( | Translatable|string | $permissionMessage | ) |
Definition at line 217 of file Command.php.
pocketmine\command\Command::setPermissions | ( | array | $permissions | ) |
string[] | $permissions |
Definition at line 96 of file Command.php.
pocketmine\command\Command::setUsage | ( | Translatable|string | $usage | ) |
Definition at line 221 of file Command.php.
pocketmine\command\Command::testPermission | ( | CommandSender | $target, |
?string | $permission = null ) |
Definition at line 110 of file Command.php.
pocketmine\command\Command::testPermissionSilent | ( | CommandSender | $target, |
?string | $permission = null ) |
Definition at line 125 of file Command.php.
pocketmine\command\Command::unregister | ( | CommandMap | $commandMap | ) |
Definition at line 164 of file Command.php.
|
protected |
Definition at line 55 of file Command.php.
|
protected |
Definition at line 57 of file Command.php.