public enum Permissions extends Enum<Permissions>
Enum Constant and Description |
---|
ANALYZE |
HELP |
IGNORE_COMMANDUSE |
INFO |
INSPECT |
INSPECT_OTHER |
MANAGE |
QUICK_ANALYZE |
QUICK_INSPECT |
QUICK_INSPECT_OTHER |
RELOAD |
SEARCH |
Modifier and Type | Method and Description |
---|---|
String |
getPermission()
Returns the string of the permission node in plugin.yml.
|
boolean |
userHasThisPermission(org.bukkit.command.CommandSender p)
Checks if the CommandSender has the permission.
|
static Permissions |
valueOf(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.
|
public static final Permissions HELP
public static final Permissions INSPECT
public static final Permissions QUICK_INSPECT
public static final Permissions QUICK_INSPECT_OTHER
public static final Permissions INSPECT_OTHER
public static final Permissions ANALYZE
public static final Permissions QUICK_ANALYZE
public static final Permissions SEARCH
public static final Permissions RELOAD
public static final Permissions INFO
public static final Permissions IGNORE_COMMANDUSE
public static final Permissions MANAGE
public static Permissions[] values()
for (Permissions c : Permissions.values()) System.out.println(c);
public static Permissions valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean userHasThisPermission(org.bukkit.command.CommandSender p)
p
- entity sending the command (console/player/other)CommandSender
public String getPermission()
Copyright © 2017. All rights reserved.