Package org.bukkit.permissions
Class PermissionAttachmentInfo
java.lang.Object
org.bukkit.permissions.PermissionAttachmentInfo
public class PermissionAttachmentInfo
extends java.lang.Object
Holds information on a permission and which
PermissionAttachment
provides it-
Constructor Summary
Constructors Constructor Description PermissionAttachmentInfo(Permissible permissible, java.lang.String permission, PermissionAttachment attachment, boolean value) -
Method Summary
Modifier and Type Method Description PermissionAttachmentgetAttachment()Gets the attachment providing this permission.PermissiblegetPermissible()Gets the permissible this is attached tojava.lang.StringgetPermission()Gets the permission being setbooleangetValue()Gets the value of this permission
-
Constructor Details
-
PermissionAttachmentInfo
public PermissionAttachmentInfo(Permissible permissible, java.lang.String permission, PermissionAttachment attachment, boolean value)
-
-
Method Details
-
getPermissible
Gets the permissible this is attached to- Returns:
- Permissible this permission is for
-
getPermission
public java.lang.String getPermission()Gets the permission being set- Returns:
- Name of the permission
-
getAttachment
Gets the attachment providing this permission. This may be null for default permissions (usually parent permissions).- Returns:
- Attachment
-
getValue
public boolean getValue()Gets the value of this permission- Returns:
- Value of the permission
-