PocketMine-MP 5.35.1 git-f412a390b8f63d0311cc1d1c81046404153b8440
|
Public Member Functions | |
addAttachment (Plugin $plugin, ?string $name=null, ?bool $value=null) | |
getCommandAliasMap () | |
getEffectivePermissions () | |
getLanguage () | |
getName () | |
getPermissionRecalculationCallbacks () | |
getScreenLineHeight () | |
getServer () | |
hasPermission (Permission|string $name) | |
isPermissionSet (Permission|string $name) | |
recalculatePermissions () | |
removeAttachment (PermissionAttachment $attachment) | |
sendMessage (Translatable|string $message) | |
setBasePermission (Permission|string $name, bool $grant) | |
setScreenLineHeight (?int $height) | |
unsetBasePermission (Permission|string $name) | |
Definition at line 31 of file CommandSender.php.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\command\CommandSender::getCommandAliasMap | ( | ) |
Returns the user's local alias map. This may contain special user-specific aliases that differ from the global command map's aliases.
Implemented in pocketmine\console\ConsoleCommandSender, pocketmine\player\Player, and pocketmine\utils\BroadcastLoggerForwarder.
Referenced by pocketmine\command\defaults\CommandAliasCommand\execute(), and pocketmine\command\defaults\HelpCommand\execute().
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\command\CommandSender::getName | ( | ) |
Implemented in pocketmine\player\Player.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\command\CommandSender::getScreenLineHeight | ( | ) |
Returns the line height of the command-sender's screen. Used for determining sizes for command output pagination such as in the /help command. @phpstan-return positive-int
Implemented in pocketmine\console\ConsoleCommandSender, pocketmine\player\Player, and pocketmine\utils\BroadcastLoggerForwarder.
Referenced by pocketmine\command\defaults\HelpCommand\execute().
|
inherited |
Returns the permission value if overridden, or the default value if not
Implemented in pocketmine\permission\PermissibleInternal.
|
inherited |
Checks if this instance has a permission overridden
Implemented in pocketmine\permission\PermissibleInternal.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\command\CommandSender::sendMessage | ( | Translatable|string | $message | ) |
Implemented in pocketmine\player\Player.
|
inherited |
Assigns a baseline permission to the permissible. This is always calculated before anything else, which means that permissions set using addAttachment() will always override base permissions. You probably don't want to use this if you're not assigning (denying) operator permissions.
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\command\CommandSender::setScreenLineHeight | ( | ?int | $height | ) |
Sets the line height used for command output pagination for this command sender. null
will reset it to default. @phpstan-param positive-int|null $height
Implemented in pocketmine\console\ConsoleCommandSender, pocketmine\player\Player, and pocketmine\utils\BroadcastLoggerForwarder.
|
inherited |
Unsets a baseline permission previously set. If it wasn't already set, this will have no effect. Note that this might have different results than setting the permission to false.
Implemented in pocketmine\permission\PermissibleInternal.