Enum Class Permissions

java.lang.Object
java.lang.Enum<Permissions>
com.github.mafelp.utils.Permissions
All Implemented Interfaces:
Serializable, Comparable<Permissions>, Constable

public enum Permissions extends Enum<Permissions>
Permissions stored in the configuration with (levels and) wildcards for specific users.
  • Enum Constant Details

    • configEdit

      public static final Permissions configEdit
      The permission to edit the configuration file
    • accountEdit

      public static final Permissions accountEdit
      The permission to edit and remove accounts from the command line.
    • discordServerAdmin

      public static final Permissions discordServerAdmin
      The permission to perform commands on teh discord servers.
    • discordBotAdmin

      public static final Permissions discordBotAdmin
      The permission to perform commands with the bot, e. g. inviting.
  • Constructor Details

    • Permissions

      private Permissions()
  • Method Details

    • values

      public static Permissions[] 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 Permissions 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