endstone.permissions
Classes relating to permissions of players.
Classes relating to permissions of players.
Classes
| Name | Description |
|---|---|
Permissible | Represents an object that may become a server operator and can be assigned permissions. |
Permission | Represents a unique permission that may be attached to a Permissible |
PermissionAttachment | Holds information about a permission attachment on a Permissible object |
PermissionAttachmentInfo | Holds information on a permission and which PermissionAttachment provides it |
PermissionDefault | Represents the possible default values for permissions |
PermissionLevel |
classPermissible
Permissible()Represents an object that may become a server operator and can be assigned permissions.
Methods
| Name | Description |
|---|---|
recalculate_permissions | Recalculates the permissions. |
remove_attachment | Removes a given PermissionAttachment. |
Attributes
| Name | Type | Description |
|---|---|---|
effective_permissions | set[PermissionAttachmentInfo] | Gets effective permissions. |
permission_level | PermissionLevel | Gets the permission level of this object |
attreffective_permissionsproperty
effective_permissions: set[PermissionAttachmentInfo]Gets effective permissions.
attrpermission_levelproperty
permission_level: PermissionLevelGets the permission level of this object
methrecalculate_permissions
recalculate_permissions() -> NoneRecalculates the permissions.
methremove_attachment
remove_attachment(attachment: PermissionAttachment) -> boolRemoves a given PermissionAttachment.
classPermission
Represents a unique permission that may be attached to a Permissible
Methods
| Name | Description |
|---|---|
recalculate_permissibles | Recalculates all Permissibles that contain this permission. |
Attributes
| Name | Type | Description |
|---|---|---|
children | dict[str, bool] | Gets the children of this permission. |
default | PermissionDefault | The default value of this permission. |
description | str | The brief description of this permission |
name | str | Gets the unique fully qualified name of this Permission. |
permissibles | set[Permissible] | Gets a set containing every Permissible that has this permission. |
attrchildrenproperty
Gets the children of this permission.
attrdefaultproperty
default: PermissionDefaultThe default value of this permission.
attrdescriptionproperty
description: strThe brief description of this permission
attrnameproperty
name: strGets the unique fully qualified name of this Permission.
attrpermissiblesproperty
permissibles: set[Permissible]Gets a set containing every Permissible that has this permission.
methrecalculate_permissibles
recalculate_permissibles() -> NoneRecalculates all Permissibles that contain this permission.
classPermissionAttachment
PermissionAttachment(plugin: Plugin, permissible: Permissible)Holds information about a permission attachment on a Permissible object
Methods
| Name | Description |
|---|---|
remove | Removes this attachment from its registered Permissible. |
Attributes
| Name | Type | Description |
|---|---|---|
permissible | Permissible | Gets the Permissible that this is attached to. |
permissions | dict[str, bool] | Gets a copy of all set permissions and values contained within this attachment. |
plugin | Plugin | Gets the plugin responsible for this attachment. |
removal_callback | Callable[[PermissionAttachment], None] | The callback to be called when this attachment is removed. |
attrpermissibleproperty
permissible: PermissibleGets the Permissible that this is attached to.
attrpermissionsproperty
Gets a copy of all set permissions and values contained within this attachment.
attrpluginproperty
plugin: PluginGets the plugin responsible for this attachment.
attrremoval_callbackproperty
removal_callback: Callable[[PermissionAttachment], None]The callback to be called when this attachment is removed.
methremove
remove() -> boolRemoves this attachment from its registered Permissible.
classPermissionAttachmentInfo
PermissionAttachmentInfo(permissible: Permissible, permission: str, attachment: PermissionAttachment, value: bool)Holds information on a permission and which PermissionAttachment provides it
Attributes
| Name | Type | Description |
|---|---|---|
attachment | PermissionAttachment | Gets the attachment providing this permission. |
permissible | Permissible | Get the permissible this is attached to |
permission | str | Gets the permission being set |
value | bool | Gets the value of this permission |
attrattachmentproperty
attachment: PermissionAttachmentGets the attachment providing this permission.
attrpermissibleproperty
permissible: PermissibleGet the permissible this is attached to
attrpermissionproperty
permission: strGets the permission being set
attrvalueproperty
value: boolGets the value of this permission
classPermissionDefault
Bases: Enum
PermissionDefault()Represents the possible default values for permissions
classPermissionLevel
Bases: IntEnum
PermissionLevel()