Enum Class Rank

java.lang.Object
java.lang.Enum<Rank>
dev.plex.rank.enums.Rank
All Implemented Interfaces:
Serializable, Comparable<Rank>, Constable

public enum Rank extends Enum<Rank>
  • Enum Constant Details

    • IMPOSTOR

      public static final Rank IMPOSTOR
    • NONOP

      public static final Rank NONOP
    • OP

      public static final Rank OP
    • ADMIN

      public static final Rank ADMIN
    • SENIOR_ADMIN

      public static final Rank SENIOR_ADMIN
    • EXECUTIVE

      public static final Rank EXECUTIVE
  • Field Details

    • level

      private final int level
    • loginMessage

      private String loginMessage
    • readable

      private String readable
    • prefix

      private String prefix
    • permissions

      private List<String> permissions
  • Constructor Details

  • Method Details

    • values

      public static Rank[] 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 Rank 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
    • getPrefix

      public String getPrefix()
    • getLoginMSG

      public String getLoginMSG()
    • getLevel

      public int getLevel()
    • getReadableString

      public String getReadableString()
    • setLoginMessage

      public void setLoginMessage(String msg)
    • setPrefix

      public void setPrefix(String prefix)
    • setHumanReadableString

      public void setHumanReadableString(String readable)
    • isAtLeast

      public boolean isAtLeast(Rank rank)
    • getPermissions

      public List<String> getPermissions()
    • setPermissions

      public void setPermissions(List<String> permissions)