Definition at line 26 of file PermissibleBase.php.
◆ __construct()
pocketmine\permission\PermissibleBase::__construct |
( |
array | $basePermissions | ) |
|
- Parameters
-
bool[] | $basePermissions | @phpstan-param array<string, bool> $basePermissions |
Definition at line 35 of file PermissibleBase.php.
◆ __destruct()
pocketmine\permission\PermissibleBase::__destruct |
( |
| ) |
|
◆ addAttachment()
pocketmine\permission\Permissible::addAttachment |
( |
Plugin | $plugin, |
|
|
?string | $name = null, |
|
|
?bool | $value = null ) |
|
inherited |
◆ getEffectivePermissions()
pocketmine\permission\Permissible::getEffectivePermissions |
( |
| ) |
|
|
inherited |
◆ getPermissionRecalculationCallbacks()
pocketmine\permission\Permissible::getPermissionRecalculationCallbacks |
( |
| ) |
|
|
inherited |
◆ hasPermission()
pocketmine\permission\Permissible::hasPermission |
( |
Permission|string | $name | ) |
|
|
inherited |
◆ isPermissionSet()
pocketmine\permission\Permissible::isPermissionSet |
( |
Permission|string | $name | ) |
|
|
inherited |
◆ recalculatePermissions()
pocketmine\permission\Permissible::recalculatePermissions |
( |
| ) |
|
|
inherited |
◆ setBasePermission()
pocketmine\permission\Permissible::setBasePermission |
( |
Permission|string | $name, |
|
|
bool | $grant ) |
|
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.
◆ unsetBasePermission()
pocketmine\permission\Permissible::unsetBasePermission |
( |
Permission|string | $name | ) |
|
|
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.
The documentation for this class was generated from the following file: