Enum Class Rank

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

public enum Rank extends Enum<Rank> implements dev.plex.api.rank.IRank<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
    • color

      private final net.kyori.adventure.text.format.NamedTextColor color
  • Constructor Details

    • Rank

      private Rank(int level, String loginMessage, String readable, String prefix, net.kyori.adventure.text.format.NamedTextColor color)
  • 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
    • isAtLeast

      public boolean isAtLeast(Rank rank)
      Specified by:
      isAtLeast in interface dev.plex.api.rank.IRank<Rank>
    • getPrefix

      public net.kyori.adventure.text.Component getPrefix()
      Specified by:
      getPrefix in interface dev.plex.api.rank.IRank<Rank>
    • toJSON

      public org.json.JSONObject toJSON()
      Specified by:
      toJSON in interface dev.plex.api.rank.IRank<Rank>