Enum Class EDhApiServerFolderNameMode

java.lang.Object
java.lang.Enum<EDhApiServerFolderNameMode>
com.seibel.distanthorizons.api.enums.config.EDhApiServerFolderNameMode
All Implemented Interfaces:
Serializable, Comparable<EDhApiServerFolderNameMode>, Constable

public enum EDhApiServerFolderNameMode extends Enum<EDhApiServerFolderNameMode>
NAME_ONLY,
IP_ONLY,
NAME_IP,
NAME_IP_PORT,
NAME_IP_PORT_MC_VERSION,

Determines how the multiplayer folders should be named.
Since:
API 2.0.0
  • Enum Constant Details

    • NAME_ONLY

      public static final EDhApiServerFolderNameMode NAME_ONLY
      Only use the server name
    • IP_ONLY

      public static final EDhApiServerFolderNameMode IP_ONLY
      Only use the server IP
    • NAME_IP

      public static final EDhApiServerFolderNameMode NAME_IP
      {SERVER_NAME} IP {IP}
      Example: Minecraft Server IP 192.168.1.40
    • NAME_IP_PORT

      public static final EDhApiServerFolderNameMode NAME_IP_PORT
      {SERVER_NAME} IP {IP}:{PORT}
      Example: Minecraft Server IP 192.168.1.40:25565
    • NAME_IP_PORT_MC_VERSION

      public static final EDhApiServerFolderNameMode NAME_IP_PORT_MC_VERSION
      {SERVER_NAME} IP {IP}
      Example: Minecraft Server IP 192.168.1.40:25565 GameVersion 1.16.5

      Not normally recommended, since the game version can change if the server installs paper or some other jar.
      This is just here to provide backwards compatibility.
  • Method Details

    • values

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