PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\permission\Permissible Interface Reference
+ Inheritance diagram for pocketmine\permission\Permissible:
+ Collaboration diagram for pocketmine\permission\Permissible:

Public Member Functions

 isPermissionSet ($name)
 
 hasPermission ($name)
 
 addAttachment (Plugin $plugin, $name=null, $value=null)
 
 removeAttachment (PermissionAttachment $attachment)
 
 recalculatePermissions ()
 
 getEffectivePermissions ()
 
 isOp ()
 
 setOp ($value)
 

Detailed Description

Definition at line 26 of file Permissible.php.

Member Function Documentation

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

Implemented in pocketmine\Player, pocketmine\permission\PermissibleBase, and pocketmine\command\ConsoleCommandSender.

pocketmine\permission\Permissible::getEffectivePermissions ( )
pocketmine\permission\Permissible::hasPermission (   $name)

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

Parameters
string | Permission$name
Returns
mixed

Implemented in pocketmine\Player, pocketmine\permission\PermissibleBase, and pocketmine\command\ConsoleCommandSender.

Referenced by pocketmine\command\Command\testPermissionSilent().

+ Here is the caller graph for this function:

pocketmine\permission\ServerOperator::isOp ( )
inherited

Checks if the current object has operator permissions

Returns
bool

Implemented in pocketmine\Player, pocketmine\command\ConsoleCommandSender, pocketmine\OfflinePlayer, and pocketmine\permission\PermissibleBase.

pocketmine\permission\Permissible::isPermissionSet (   $name)

Checks if this instance has a permission overridden

Parameters
string | Permission$name
Returns
boolean

Implemented in pocketmine\Player, pocketmine\permission\PermissibleBase, and pocketmine\command\ConsoleCommandSender.

pocketmine\permission\Permissible::recalculatePermissions ( )
pocketmine\permission\Permissible::removeAttachment ( PermissionAttachment  $attachment)
pocketmine\permission\ServerOperator::setOp (   $value)
inherited

Sets the operator permission for the current object

Parameters
bool$value
Returns
void

Implemented in pocketmine\Player, pocketmine\command\ConsoleCommandSender, pocketmine\permission\PermissibleBase, and pocketmine\OfflinePlayer.


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