PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
|
Public Member Functions | |
__construct (array $basePermissions) | |
addAttachment (Plugin $plugin, ?string $name=null, ?bool $value=null) | |
destroyCycles () | |
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 42 of file PermissibleInternal.php.
pocketmine\permission\PermissibleInternal::__construct | ( | array | $basePermissions | ) |
bool[] | $basePermissions | @phpstan-param array<string, bool> $basePermissions |
Definition at line 65 of file PermissibleInternal.php.
References pocketmine\permission\PermissibleInternal\recalculatePermissions().
pocketmine\permission\PermissibleInternal::addAttachment | ( | Plugin | $plugin, |
?string | $name = null, | ||
?bool | $value = null ) |
//TODO: tick scheduled attachments
Implements pocketmine\permission\Permissible.
Definition at line 104 of file PermissibleInternal.php.
pocketmine\permission\PermissibleInternal::destroyCycles | ( | ) |
Definition at line 215 of file PermissibleInternal.php.
pocketmine\permission\PermissibleInternal::getEffectivePermissions | ( | ) |
Implements pocketmine\permission\Permissible.
Definition at line 211 of file PermissibleInternal.php.
pocketmine\permission\PermissibleInternal::getPermissionRecalculationCallbacks | ( | ) |
Implements pocketmine\permission\Permissible.
Definition at line 206 of file PermissibleInternal.php.
pocketmine\permission\PermissibleInternal::hasPermission | ( | Permission|string | $name | ) |
Returns the permission value if overridden, or the default value if not
Implements pocketmine\permission\Permissible.
Definition at line 89 of file PermissibleInternal.php.
pocketmine\permission\PermissibleInternal::isPermissionSet | ( | Permission|string | $name | ) |
Checks if this instance has a permission overridden
Implements pocketmine\permission\Permissible.
Definition at line 85 of file PermissibleInternal.php.
pocketmine\permission\PermissibleInternal::recalculatePermissions | ( | ) |
Implements pocketmine\permission\Permissible.
Definition at line 133 of file PermissibleInternal.php.
Referenced by pocketmine\permission\PermissibleInternal\__construct().
pocketmine\permission\PermissibleInternal::removeAttachment | ( | PermissionAttachment | $attachment | ) |
Implements pocketmine\permission\Permissible.
Definition at line 122 of file PermissibleInternal.php.
pocketmine\permission\PermissibleInternal::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.
Implements pocketmine\permission\Permissible.
Definition at line 72 of file PermissibleInternal.php.
pocketmine\permission\PermissibleInternal::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.
Implements pocketmine\permission\Permissible.
Definition at line 80 of file PermissibleInternal.php.