Class PermissionAttachmentInfo
java.lang.Object
org.bukkit.permissions.PermissionAttachmentInfo
Holds information on a permission and which
PermissionAttachment
provides it- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionAttachmentInfo(@NotNull Permissible permissible, @NotNull String permission, @Nullable PermissionAttachment attachment, boolean value) -
Method Summary
Modifier and TypeMethodDescriptionGets the attachment providing this permission.Gets the permissible this is attached toGets the permission being setbooleangetValue()Gets the value of this permission
-
Constructor Details
-
PermissionAttachmentInfo
public PermissionAttachmentInfo(@NotNull @NotNull Permissible permissible, @NotNull @NotNull String permission, @Nullable @Nullable PermissionAttachment attachment, boolean value) - Since:
- 1.0.0
-
-
Method Details
-
getPermissible
Gets the permissible this is attached to- Returns:
- Permissible this permission is for
- Since:
- 1.0.0
-
getPermission
-
getAttachment
Gets the attachment providing this permission. This may be null for default permissions (usually parent permissions).- Returns:
- Attachment
- Since:
- 1.0.0
-
getValue
public boolean getValue()Gets the value of this permission- Returns:
- Value of the permission
- Since:
- 1.0.0
-