PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
__construct (private Server $server, private Language $language) | |
addAttachment (Plugin $plugin, ?string $name=null, ?bool $value=null) | |
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) | |
Protected Attributes | |
int | $lineHeight = null |
Definition at line 39 of file ConsoleCommandSender.php.
pocketmine\console\ConsoleCommandSender::__construct | ( | private Server | $server, |
private Language | $language ) |
Definition at line 45 of file ConsoleCommandSender.php.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\console\ConsoleCommandSender::getLanguage | ( | ) |
Implements pocketmine\command\CommandSender.
Definition at line 56 of file ConsoleCommandSender.php.
pocketmine\console\ConsoleCommandSender::getName | ( | ) |
Implements pocketmine\command\CommandSender.
Definition at line 70 of file ConsoleCommandSender.php.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\console\ConsoleCommandSender::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
Implements pocketmine\command\CommandSender.
Definition at line 74 of file ConsoleCommandSender.php.
pocketmine\console\ConsoleCommandSender::getServer | ( | ) |
Implements pocketmine\command\CommandSender.
Definition at line 52 of file ConsoleCommandSender.php.
|
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\console\ConsoleCommandSender::sendMessage | ( | Translatable|string | $message | ) |
Implements pocketmine\command\CommandSender.
Definition at line 60 of file ConsoleCommandSender.php.
|
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\console\ConsoleCommandSender::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
Implements pocketmine\command\CommandSender.
Definition at line 78 of file ConsoleCommandSender.php.
|
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.
|
protected |
@phpstan-var positive-int|null
Definition at line 43 of file ConsoleCommandSender.php.