Enum Class ServerLink.Type

java.lang.Object
java.lang.Enum<ServerLink.Type>
com.velocitypowered.api.util.ServerLink.Type
All Implemented Interfaces:
Serializable, Comparable<ServerLink.Type>, Constable
Enclosing class:
ServerLink

public static enum ServerLink.Type extends Enum<ServerLink.Type>
Built-in types of server links.
API Note:
BUG_REPORT links are shown on the connection error screen
  • Enum Constant Details

    • BUG_REPORT

      public static final ServerLink.Type BUG_REPORT
      A link to report bugs related to the server or gameplay.
    • COMMUNITY_GUIDELINES

      public static final ServerLink.Type COMMUNITY_GUIDELINES
      A link to the server's community guidelines or rules.
    • SUPPORT

      public static final ServerLink.Type SUPPORT
      A link to the server’s support or help desk.
    • STATUS

      public static final ServerLink.Type STATUS
      A link showing the current server or service status.
    • FEEDBACK

      public static final ServerLink.Type FEEDBACK
      A link to provide feedback to the server staff or developers.
    • COMMUNITY

      public static final ServerLink.Type COMMUNITY
      A link to the server’s community hub or Discord.
    • WEBSITE

      public static final ServerLink.Type WEBSITE
      A link to the server's main website.
    • FORUMS

      public static final ServerLink.Type FORUMS
      A link to the server's forums.
    • NEWS

      public static final ServerLink.Type NEWS
      A link to server or game-related news.
    • ANNOUNCEMENTS

      public static final ServerLink.Type ANNOUNCEMENTS
      A link to announcements from the server team.
  • Method Details

    • values

      public static ServerLink.Type[] 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 ServerLink.Type 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