PocketMine-MP 5.15.1 git-08c6e63aac45a450fe3b437616ee8aa2500e04e2
pocketmine\permission\Permissible Interface Reference
+ Inheritance diagram for pocketmine\permission\Permissible:
+ Collaboration diagram for pocketmine\permission\Permissible:

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)
 

Detailed Description

Definition at line 29 of file Permissible.php.

Member Function Documentation

◆ addAttachment()

pocketmine\permission\Permissible::addAttachment ( Plugin  $plugin,
?string  $name = null,
?bool  $value = null 
)

◆ getEffectivePermissions()

pocketmine\permission\Permissible::getEffectivePermissions ( )

◆ getPermissionRecalculationCallbacks()

pocketmine\permission\Permissible::getPermissionRecalculationCallbacks ( )
Returns
ObjectSet|\Closure[] @phpstan-return ObjectSet<\Closure(array<string, bool> $changedPermissionsOldValues) : void>

Implemented in pocketmine\permission\PermissibleInternal.

◆ hasPermission()

pocketmine\permission\Permissible::hasPermission ( Permission|string  $name)

Returns the permission value if overridden, or the default value if not

Implemented in pocketmine\permission\PermissibleInternal.

◆ isPermissionSet()

pocketmine\permission\Permissible::isPermissionSet ( Permission|string  $name)

Checks if this instance has a permission overridden

Implemented in pocketmine\permission\PermissibleInternal.

◆ recalculatePermissions()

pocketmine\permission\Permissible::recalculatePermissions ( )
Returns
bool[] changed permission name => old value @phpstan-return array<string, bool>

Implemented in pocketmine\permission\PermissibleInternal.

◆ setBasePermission()

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.

◆ unsetBasePermission()

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.


The documentation for this interface was generated from the following file: