Enum Permissions
- All Implemented Interfaces:
- Serializable,- Comparable<Permissions>,- java.lang.constant.Constable
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionGrants access to admin specific commands and abilities.Used for the arena beta feature (Config "beta").Similar toTELEPORT_INSIDE_ARENA, this forbids players to build inside arenas in which they aren't participatingBypasses command restrictions from the config.Grants access to the "/bw forcestart" command and the forcestart itemGrants access to the "/bw join" commandGrants access to the "/bw kick" commandGrants access to the "/bw leave" commandGrants access to the "/bw locateplayer" commandGrants access to the "/bw rejoin" commandGrants access to the "/bw stats" commandUsed for the "amount-perm" config for shop prices.Players using this permission are able to join full lobbies.Used for the "language-per-user-requires-permission" config.Permissions to buy specific shop items.Permission for the config "specialitem-requiredpermission".Generally the plugin forbids any user to teleport to an arena when they're not inside playing in it.
- 
Method SummaryModifier and TypeMethodDescriptionget()Returns the permission in Bukkit's String format.Returns the permission in Bukkit's String format and overrides all parameters.booleanhas(CommandSender sender) Returns whether or not the sender is granted to this permission.booleanhas(CommandSender sender, String... params) Returns whether or not the sender is granted to this permission.static PermissionsReturns 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 Details- 
COMMAND_STATSGrants access to the "/bw stats" command
- 
COMMAND_JOINGrants access to the "/bw join" command
- 
COMMAND_REJOINGrants access to the "/bw rejoin" command
- 
COMMAND_LEAVEGrants access to the "/bw leave" command
- 
COMMAND_FORCESTARTGrants access to the "/bw forcestart" command and the forcestart item
- 
COMMAND_KICKGrants access to the "/bw kick" command
- 
COMMAND_LOCATE_PLAYERGrants access to the "/bw locateplayer" command
- 
ADMINGrants access to admin specific commands and abilities.This includes: reload, arena spawn, sethubpos, tools, backup, addon, checkupdate, debug 
- 
TELEPORT_INSIDE_ARENAGenerally the plugin forbids any user to teleport to an arena when they're not inside playing in it.This has been added as a security measure to prevent players from doing things such as /back or /home. 
- 
BUILD_INSIDE_ARENASimilar toTELEPORT_INSIDE_ARENA, this forbids players to build inside arenas in which they aren't participating
- 
BETA_USERUsed for the arena beta feature (Config "beta").By this a message is being displayed that gamemode is still in beta and only players with this permission are able to join an arena. 
- 
JOIN_FULL_LOBBIESPlayers using this permission are able to join full lobbies.By this they'll kick a random player who doesn't have this permission in favor for a new available slot. 
- 
BYPASS_BLOCKED_COMANDSBypasses command restrictions from the config.See blocked-commands-modeandblocked-commandsin config.yml.
- 
CUSTOM_PRICE_IN_SHOPUsed for the "amount-perm" config for shop prices.Players using this permission will see the "amount-perm" instead. 
- 
LANGUAGE_PER_USERUsed for the "language-per-user-requires-permission" config.If it's enabled then the plugin will only display the messages in the language of the player when they have this permission. 
- 
SPECIAL_ITEM_USEPermission for the config "specialitem-requiredpermission".If that config is enabled then only players with this permission can use specific special items. This permission has a parameter which represents the id of the special item. 
- 
SHOP_ITEM_USEPermissions to buy specific shop items.Users can set shop items to require a certain permission in order to be purchased. This permission has a parameter which represents the id of the shop item. 
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns 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:
- IllegalArgumentException- if this enum type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getReturns the permission in Bukkit's String format.A few permissions require parameters to be added. Those will be displayed as "%s" using this method. - Returns:
- The permission in String format
 
- 
getReturns the permission in Bukkit's String format and overrides all parameters.- Parameters:
- params- The parameters you want to be added
- Returns:
- The permission in String format with the parameters overwritten
 
- 
hasReturns whether or not the sender is granted to this permission.- Parameters:
- sender- The person we want to check
- Returns:
- trueif he is permitted
 
- 
hasReturns whether or not the sender is granted to this permission.A few permissions require parameters to be added. Those will be displayed as "%s" using this method. - Parameters:
- sender- The person we want to check
- params- The parameters you want to be added
- Returns:
- trueif he is permitted
 
 
-