|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.permissions.PermissibleBase
public class PermissibleBase
Base Permissible for use in any Permissible object via proxy or extension
| Constructor Summary | |
|---|---|
PermissibleBase(ServerOperator opable)
|
|
| Method Summary | |
|---|---|
PermissionAttachment |
addAttachment(Plugin plugin)
Adds a new empty PermissionAttachment to this object |
PermissionAttachment |
addAttachment(Plugin plugin,
int ticks)
Temporarily adds a new empty PermissionAttachment to this object |
PermissionAttachment |
addAttachment(Plugin plugin,
String name,
boolean value)
Adds a new PermissionAttachment with a single permission by name and value |
PermissionAttachment |
addAttachment(Plugin plugin,
String name,
boolean value,
int ticks)
Temporarily adds a new PermissionAttachment with a single permission by name and value |
void |
clearPermissions()
|
Set<PermissionAttachmentInfo> |
getEffectivePermissions()
Gets a set containing all of the permissions currently in effect by this object |
boolean |
hasPermission(Permission perm)
Gets the value of the specified permission, if set. |
boolean |
hasPermission(String inName)
Gets the value of the specified permission, if set. |
boolean |
isOp()
Checks if this object is a server operator |
boolean |
isPermissionSet(Permission perm)
Checks if this object contains an override for the specified Permission |
boolean |
isPermissionSet(String name)
Checks if this object contains an override for the specified permission, by fully qualified name |
void |
recalculatePermissions()
Recalculates the permissions for this object, if the attachments have changed values. |
void |
removeAttachment(PermissionAttachment attachment)
Removes the given PermissionAttachment from this object |
void |
setOp(boolean value)
Sets the operator status of this object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PermissibleBase(ServerOperator opable)
| Method Detail |
|---|
public boolean isOp()
ServerOperator
isOp in interface ServerOperatorpublic void setOp(boolean value)
ServerOperator
setOp in interface ServerOperatorvalue - New operator valuepublic boolean isPermissionSet(String name)
Permissible
isPermissionSet in interface Permissiblename - Name of the permission
public boolean isPermissionSet(Permission perm)
PermissiblePermission
isPermissionSet in interface Permissibleperm - Permission to check
public boolean hasPermission(String inName)
Permissible
hasPermission in interface PermissibleinName - Name of the permission
public boolean hasPermission(Permission perm)
Permissible
hasPermission in interface Permissibleperm - Permission to get
public PermissionAttachment addAttachment(Plugin plugin,
String name,
boolean value)
PermissiblePermissionAttachment with a single permission by name and value
addAttachment in interface Permissibleplugin - Plugin responsible for this attachment, may not be null or disabledname - Name of the permission to attachvalue - Value of the permission
public PermissionAttachment addAttachment(Plugin plugin)
PermissiblePermissionAttachment to this object
addAttachment in interface Permissibleplugin - Plugin responsible for this attachment, may not be null or disabled
public void removeAttachment(PermissionAttachment attachment)
PermissiblePermissionAttachment from this object
removeAttachment in interface Permissibleattachment - Attachment to removepublic void recalculatePermissions()
Permissible
recalculatePermissions in interface Permissiblepublic void clearPermissions()
public PermissionAttachment addAttachment(Plugin plugin,
String name,
boolean value,
int ticks)
PermissiblePermissionAttachment with a single permission by name and value
addAttachment in interface Permissibleplugin - Plugin responsible for this attachment, may not be null or disabledname - Name of the permission to attachvalue - Value of the permissionticks - Amount of ticks to automatically remove this attachment after
public PermissionAttachment addAttachment(Plugin plugin,
int ticks)
PermissiblePermissionAttachment to this object
addAttachment in interface Permissibleplugin - Plugin responsible for this attachment, may not be null or disabledticks - Amount of ticks to automatically remove this attachment after
public Set<PermissionAttachmentInfo> getEffectivePermissions()
Permissible
getEffectivePermissions in interface Permissible
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||