Package org.bukkit.permissions
Class PermissionAttachment
java.lang.Object
org.bukkit.permissions.PermissionAttachment
Holds information about a permission attachment on a 
Permissible
 object- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGets the Permissible that this is attached toGets a copy of all set permissions and values contained within this attachment.Gets the plugin responsible for this attachmentGets the class that was previously set to be called when this attachment was removed from aPermissible.booleanremove()Removes this attachment from its registeredPermissiblevoidsetPermission(String name, boolean value) Sets a permission to the given value, by its fully qualified namevoidsetPermission(Permission perm, boolean value) Sets a permission to the given valuevoidSets an object to be called for when this attachment is removed from aPermissible.voidunsetPermission(String name) Removes the specified permission from this attachment.voidunsetPermission(Permission perm) Removes the specified permission from this attachment.
- 
Constructor Details- 
PermissionAttachment
 
- 
- 
Method Details- 
getPluginGets the plugin responsible for this attachment- Returns:
- Plugin responsible for this permission attachment
 
- 
setRemovalCallbackSets an object to be called for when this attachment is removed from aPermissible. May be null.- Parameters:
- ex- Object to be called when this is removed
 
- 
getRemovalCallbackGets the class that was previously set to be called when this attachment was removed from aPermissible. May be null.- Returns:
- Object to be called when this is removed
 
- 
getPermissibleGets the Permissible that this is attached to- Returns:
- Permissible containing this attachment
 
- 
getPermissionsGets a copy of all set permissions and values contained within this attachment.This map may be modified but will not affect the attachment, as it is a copy. - Returns:
- Copy of all permissions and values expressed by this attachment
 
- 
setPermissionSets a permission to the given value, by its fully qualified name- Parameters:
- name- Name of the permission
- value- New value of the permission
 
- 
setPermissionSets a permission to the given value- Parameters:
- perm- Permission to set
- value- New value of the permission
 
- 
unsetPermissionRemoves the specified permission from this attachment.If the permission does not exist in this attachment, nothing will happen. - Parameters:
- name- Name of the permission to remove
 
- 
unsetPermissionRemoves the specified permission from this attachment.If the permission does not exist in this attachment, nothing will happen. - Parameters:
- perm- Permission to remove
 
- 
removepublic boolean remove()Removes this attachment from its registeredPermissible- Returns:
- true if the permissible was removed successfully, false if it did not exist
 
 
-