Package | Description |
---|---|
org.bukkit.permissions |
Classes dedicated to providing binary state properties to players.
|
org.bukkit.plugin |
Classes specifically relating to loading software modules at runtime.
|
org.bukkit.util.permissions |
Static methods for miscellaneous
permission functionality. |
Modifier and Type | Method and Description |
---|---|
Permission |
Permission.addParent(String name,
boolean value)
Adds this permission to the specified parent permission.
|
static Permission |
Permission.loadPermission(String name,
Map<?,?> data,
PermissionDefault def,
List<Permission> output)
Loads a Permission from a map of data, usually used from retrieval from
a yaml file.
|
static Permission |
Permission.loadPermission(String name,
Map<String,Object> data)
Loads a Permission from a map of data, usually used from retrieval from
a yaml file.
|
Modifier and Type | Method and Description |
---|---|
static List<Permission> |
Permission.loadPermissions(Map<?,?> data,
String error,
PermissionDefault def)
Loads a list of Permissions from a map of data, usually used from
retrieval from a yaml file.
|
Modifier and Type | Method and Description |
---|---|
void |
Permission.addParent(Permission perm,
boolean value)
Adds this permission to the specified parent permission.
|
boolean |
Permissible.hasPermission(Permission perm)
Gets the value of the specified permission, if set.
|
boolean |
PermissibleBase.hasPermission(Permission perm) |
boolean |
Permissible.isPermissionSet(Permission perm)
Checks if this object contains an override for the specified
Permission |
boolean |
PermissibleBase.isPermissionSet(Permission perm) |
void |
PermissionAttachment.setPermission(Permission perm,
boolean value)
Sets a permission to the given value
|
void |
PermissionAttachment.unsetPermission(Permission perm)
Removes the specified permission from this attachment.
|
Modifier and Type | Method and Description |
---|---|
static Permission |
Permission.loadPermission(String name,
Map<?,?> data,
PermissionDefault def,
List<Permission> output)
Loads a Permission from a map of data, usually used from retrieval from
a yaml file.
|
Modifier and Type | Method and Description |
---|---|
Permission |
SimplePluginManager.getPermission(String name) |
Permission |
PluginManager.getPermission(String name)
Gets a
Permission from its fully qualified name |
Modifier and Type | Method and Description |
---|---|
Set<Permission> |
SimplePluginManager.getDefaultPermissions(boolean op) |
Set<Permission> |
PluginManager.getDefaultPermissions(boolean op)
Gets the default permissions for the given op status
|
Set<Permission> |
SimplePluginManager.getPermissions() |
List<Permission> |
PluginDescriptionFile.getPermissions()
Gives the list of permissions the plugin will register at runtime,
immediately proceding enabling.
|
Set<Permission> |
PluginManager.getPermissions()
Gets a set of all registered permissions.
|
Modifier and Type | Method and Description |
---|---|
void |
SimplePluginManager.addPermission(Permission perm) |
void |
PluginManager.addPermission(Permission perm)
Adds a
Permission to this plugin manager. |
void |
SimplePluginManager.addPermission(Permission perm,
boolean dirty)
Deprecated.
|
void |
SimplePluginManager.recalculatePermissionDefaults(Permission perm) |
void |
PluginManager.recalculatePermissionDefaults(Permission perm)
Recalculates the defaults for the given
Permission . |
void |
SimplePluginManager.removePermission(Permission perm) |
void |
PluginManager.removePermission(Permission perm)
Removes a
Permission registration from this plugin manager. |
Modifier and Type | Method and Description |
---|---|
static Permission |
DefaultPermissions.registerPermission(Permission perm) |
static Permission |
DefaultPermissions.registerPermission(Permission perm,
boolean withLegacy) |
static Permission |
DefaultPermissions.registerPermission(Permission perm,
Permission parent) |
static Permission |
DefaultPermissions.registerPermission(String name,
String desc,
Permission parent) |
static Permission |
DefaultPermissions.registerPermission(String name,
String desc,
PermissionDefault def,
Map<String,Boolean> children,
Permission parent) |
static Permission |
DefaultPermissions.registerPermission(String name,
String desc,
PermissionDefault def,
Permission parent) |
static Permission |
CommandPermissions.registerPermissions(Permission parent) |
static Permission |
BroadcastPermissions.registerPermissions(Permission parent) |
Copyright © 2017. All rights reserved.