Enum Class BypassPermission

java.lang.Object
java.lang.Enum<BypassPermission>
org.sgrewritten.stargate.api.permission.BypassPermission
All Implemented Interfaces:
Serializable, Comparable<BypassPermission>, Constable

public enum BypassPermission extends Enum<BypassPermission>
This enum represents the different permissions used to bypass various protections
  • Enum Constant Details

    • COST_USE

      public static final BypassPermission COST_USE
      The ability to bypass the cost of using stargates
    • COST_CREATE

      public static final BypassPermission COST_CREATE
      The ability to bypass the cost of creating stargates
    • COST_DESTROY

      public static final BypassPermission COST_DESTROY
      The ability to bypass the cost of destroying stargates
    • PRIVATE

      public static final BypassPermission PRIVATE
      The ability to bypass the protection of private stargates
    • HIDDEN

      public static final BypassPermission HIDDEN
      The ability to bypass the protection of hidden stargates
    • GATE_LIMIT

      public static final BypassPermission GATE_LIMIT
      The ability to bypass the max "gates per network" limit
  • Method Details

    • values

      public static BypassPermission[] 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 BypassPermission 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
    • getPermissionString

      public String getPermissionString()
      Gets the permission string for this protection bypass
      Returns:

      The permission string for this bypass permission