PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
Public Member Functions | |
addAttachment (Plugin $plugin, ?string $name=null, ?bool $value=null) | |
getEffectivePermissions () | |
getPermissionRecalculationCallbacks () | |
hasPermission (Permission|string $name) | |
isPermissionSet (Permission|string $name) | |
recalculatePermissions () | |
removeAttachment (PermissionAttachment $attachment) | |
setBasePermission (Permission|string $name, bool $grant) | |
unsetBasePermission (Permission|string $name) | |
Definition at line 29 of file Permissible.php.
pocketmine\permission\Permissible::addAttachment | ( | Plugin | $plugin, |
?string | $name = null, | ||
?bool | $value = null ) |
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\permission\Permissible::getEffectivePermissions | ( | ) |
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\permission\Permissible::getPermissionRecalculationCallbacks | ( | ) |
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\permission\Permissible::hasPermission | ( | Permission|string | $name | ) |
Returns the permission value if overridden, or the default value if not
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\permission\Permissible::isPermissionSet | ( | Permission|string | $name | ) |
Checks if this instance has a permission overridden
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\permission\Permissible::recalculatePermissions | ( | ) |
Implemented in pocketmine\permission\PermissibleInternal.
pocketmine\permission\Permissible::setBasePermission | ( | Permission|string | $name, |
bool | $grant ) |
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\permission\Permissible::unsetBasePermission | ( | Permission|string | $name | ) |
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.