JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
Permissions for bypassing all world/groups inventory handling.
Permission prefix for bypassing worlds.
Permission for bypassing all worlds.
Permission prefix for bypassing groups.
Permission for bypassing all groups.
Permission prefix for bypassing worlds.
Permission for bypassing all worlds.
Permission for /mvinv addshare.
Permission for /mvinv addworld.
Permission for /mvinv creategroup.
Permission for debug command.
Permission for /mvinv deletegroup.
Permission for /mvinv group.
Permission for /mvinv import.
Permission for /mvinv info.
Permission for /mvinv list.
Permission for /mvinv reload.
Permission for /mvinv rmshare.
Permission for /mvinv remvoveworld.
Permissions for /mvinv spawn.
Permissions for /mvinv spawn.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
org.bukkit.permissions.Permission
org.bukkit.permissions.Permission
boolean
has (org.bukkit.command.CommandSender sender)
Checks if the sender has the node in question.
boolean
Checks if a player has permission to bypass something which requires a name of an object to be bypassed.
static void
Registers all Permission to the plugin.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
COMMAND_INFO
public static final Perm COMMAND_INFO
Permission for /mvinv info.
COMMAND_LIST
public static final Perm COMMAND_LIST
Permission for /mvinv list.
COMMAND_RELOAD
public static final Perm COMMAND_RELOAD
Permission for /mvinv reload.
COMMAND_IMPORT
public static final Perm COMMAND_IMPORT
Permission for /mvinv import.
COMMAND_GROUP
public static final Perm COMMAND_GROUP
Permission for /mvinv group.
COMMAND_ADDWORLD
public static final Perm COMMAND_ADDWORLD
Permission for /mvinv addworld.
COMMAND_RMWORLD
public static final Perm COMMAND_RMWORLD
Permission for /mvinv remvoveworld.
COMMAND_ADDSHARES
public static final Perm COMMAND_ADDSHARES
Permission for /mvinv addshare.
COMMAND_RMSHARES
public static final Perm COMMAND_RMSHARES
Permission for /mvinv rmshare.
COMMAND_CREATEGROUP
public static final Perm COMMAND_CREATEGROUP
Permission for /mvinv creategroup.
COMMAND_DELETEGROUP
public static final Perm COMMAND_DELETEGROUP
Permission for /mvinv deletegroup.
COMMAND_SPAWN
public static final Perm COMMAND_SPAWN
Permissions for /mvinv spawn.
COMMAND_SPAWN_OTHER
public static final Perm COMMAND_SPAWN_OTHER
Permissions for /mvinv spawn.
COMMAND_DEBUG
public static final Perm COMMAND_DEBUG
Permission for debug command.
BYPASS_GROUP_ALL
public static final Perm BYPASS_GROUP_ALL
Permission for bypassing all groups.
BYPASS_GROUP
public static final Perm BYPASS_GROUP
Permission prefix for bypassing groups.
BYPASS_WORLD_ALL
public static final Perm BYPASS_WORLD_ALL
Permission for bypassing all worlds.
BYPASS_WORLD
public static final Perm BYPASS_WORLD
Permission prefix for bypassing worlds.
BYPASS_GAME_MODE_ALL
public static final Perm BYPASS_GAME_MODE_ALL
Permission for bypassing all worlds.
BYPASS_GAME_MODE
public static final Perm BYPASS_GAME_MODE
Permission prefix for bypassing worlds.
BYPASS_ALL
public static final Perm BYPASS_ALL
Permissions for bypassing all world/groups inventory handling.
Method Details
values
public static Perm [] values ()
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified name
NullPointerException
- if the argument is null
getPermission
public org.bukkit.permissions.Permission getPermission ()
Returns:
the Permission.
getNode
Returns:
the Permission node string.
getBypassPermission
public org.bukkit.permissions.Permission getBypassPermission (String finalNode)
Parameters:
finalNode
- String to add to the bypass prefix.
Returns:
The full permission node for bypass.
hasBypass
public boolean hasBypass (org.bukkit.entity.Player player,
String name)
Checks if a player has permission to bypass something which requires a name of an object to be bypassed.
A World name for example.
Parameters:
player
- Player to check permission for.
name
- Name of object to bypass.
Returns:
True if player is allowed to bypass.
has
public boolean has (org.bukkit.command.CommandSender sender)
Checks if the sender has the node in question.
Parameters:
sender
- CommandSender to check permission for.
Returns:
True if sender has the permission.
register
Registers all Permission to the plugin.
Parameters:
plugin
- Plugin to register permissions to.