java.lang.Object
java.lang.Enum<Perm>
org.mvplugins.multiverse.inventories.util.Perm
All Implemented Interfaces:
Serializable, Comparable<Perm>, Constable

public enum Perm extends Enum<Perm>
  • 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

      public static Perm valueOf(String name)
      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

      public String 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

      public static void register(MultiverseInventories plugin)
      Registers all Permission to the plugin.
      Parameters:
      plugin - Plugin to register permissions to.