Package com.djrapitops.plan.settings
Enum Permissions
- java.lang.Object
-
- java.lang.Enum<Permissions>
-
- com.djrapitops.plan.settings.Permissions
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Permissions>
public enum Permissions extends java.lang.Enum<Permissions>
Permissions class is used easily check every permission node.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
get()
Returns the permission node in plugin.yml.java.lang.String
getPerm()
Same asgetPermission()
.java.lang.String
getPermission()
Returns the permission node in plugin.yml.static Permissions
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Permissions[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SERVER
public static final Permissions SERVER
-
SERVERS
public static final Permissions SERVERS
-
NETWORK
public static final Permissions NETWORK
-
PLAYER_SELF
public static final Permissions PLAYER_SELF
-
PLAYER_OTHER
public static final Permissions PLAYER_OTHER
-
SEARCH
public static final Permissions SEARCH
-
INGAME_SELF
public static final Permissions INGAME_SELF
-
INGAME_OTHER
public static final Permissions INGAME_OTHER
-
REGISTER_SELF
public static final Permissions REGISTER_SELF
-
REGISTER_OTHER
public static final Permissions REGISTER_OTHER
-
UNREGISTER_SELF
public static final Permissions UNREGISTER_SELF
-
UNREGISTER_OTHER
public static final Permissions UNREGISTER_OTHER
-
LOGOUT_OTHER
public static final Permissions LOGOUT_OTHER
-
INFO
public static final Permissions INFO
-
RELOAD
public static final Permissions RELOAD
-
DISABLE
public static final Permissions DISABLE
-
USERS
public static final Permissions USERS
-
DATA_BASE
public static final Permissions DATA_BASE
-
DATA_BACKUP
public static final Permissions DATA_BACKUP
-
DATA_RESTORE
public static final Permissions DATA_RESTORE
-
DATA_MOVE
public static final Permissions DATA_MOVE
-
DATA_HOTSWAP
public static final Permissions DATA_HOTSWAP
-
DATA_CLEAR
public static final Permissions DATA_CLEAR
-
DATA_REMOVE_PLAYER
public static final Permissions DATA_REMOVE_PLAYER
-
DATA_REMOVE_SERVER
public static final Permissions DATA_REMOVE_SERVER
-
DATA_EXPORT
public static final Permissions DATA_EXPORT
-
DATA_IMPORT
public static final Permissions DATA_IMPORT
-
JSON_SELF
public static final Permissions JSON_SELF
-
JSON_OTHER
public static final Permissions JSON_OTHER
-
IGNORE_COMMAND_USE
public static final Permissions IGNORE_COMMAND_USE
-
IGNORE_AFK
public static final Permissions IGNORE_AFK
-
-
Method Detail
-
values
public static Permissions[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Permissions c : Permissions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Permissions valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getPermission
public java.lang.String getPermission()
Returns the permission node in plugin.yml.- Returns:
- permission node eg. plan.inspect.base
-
getPerm
public java.lang.String getPerm()
Same asgetPermission()
.- Returns:
- permission node eg. plan.inspect.base
-
get
public java.lang.String get()
Returns the permission node in plugin.yml.- Returns:
- permission node eg. plan.inspect.base
-
-