PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (private Server $server, private \Logger $logger, 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) | |
Forwards any messages it receives via sendMessage() to the given logger. Used for forwarding chat messages and command audit log messages to the server log file.
Unfortunately, broadcast subscribers are currently required to implement CommandSender, so this class has to include a lot of useless methods.
Definition at line 41 of file BroadcastLoggerForwarder.php.
pocketmine\utils\BroadcastLoggerForwarder::__construct | ( | private Server | $server, |
private \Logger | $logger, | ||
private Language | $language ) |
Definition at line 44 of file BroadcastLoggerForwarder.php.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\utils\BroadcastLoggerForwarder::getLanguage | ( | ) |
Implements pocketmine\command\CommandSender.
Definition at line 53 of file BroadcastLoggerForwarder.php.
pocketmine\utils\BroadcastLoggerForwarder::getName | ( | ) |
Implements pocketmine\command\CommandSender.
Definition at line 69 of file BroadcastLoggerForwarder.php.
|
inherited |
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\utils\BroadcastLoggerForwarder::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 73 of file BroadcastLoggerForwarder.php.
pocketmine\utils\BroadcastLoggerForwarder::getServer | ( | ) |
Implements pocketmine\command\CommandSender.
Definition at line 65 of file BroadcastLoggerForwarder.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\utils\BroadcastLoggerForwarder::sendMessage | ( | Translatable|string | $message | ) |
Implements pocketmine\command\CommandSender.
Definition at line 57 of file BroadcastLoggerForwarder.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\utils\BroadcastLoggerForwarder::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 77 of file BroadcastLoggerForwarder.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.