Enum Class PluginVersion

java.lang.Object
java.lang.Enum<PluginVersion>
nl.mtvehicles.core.infrastructure.enums.PluginVersion
All Implemented Interfaces:
Serializable, Comparable<PluginVersion>, Constable

public enum PluginVersion extends Enum<PluginVersion>
The plugin's version
  • Enum Constant Details

    • LEGACY

      public static final PluginVersion LEGACY
      Legacy versions (older than 2.3.0)
    • v2_3_0

      public static final PluginVersion v2_3_0
      2.3.0 (The fuel and dependency update)
    • v2_4_0_pre1

      public static final PluginVersion v2_4_0_pre1
      2.4.0-pre1
    • v2_4_0_rc1

      public static final PluginVersion v2_4_0_rc1
      2.4.0-rc1
    • v2_4_0

      public static final PluginVersion v2_4_0
      2.4.0 (The Planes and the API update)
    • v2_4_1

      public static final PluginVersion v2_4_1
      2.4.1 (Hotfixes)
    • v2_4_2

      public static final PluginVersion v2_4_2
      2.4.2
    • v2_4_3

      public static final PluginVersion v2_4_3
      2.4.3 (with 1.19 support)
    • v2_5_0_pre1

      public static final PluginVersion v2_5_0_pre1
      2.5.0-pre1
    • v2_5_0_pre2

      public static final PluginVersion v2_5_0_pre2
      2.5.0-pre2
    • v2_5_0

      public static final PluginVersion v2_5_0
      2.5.0 (Boats and API overhaul, 1.20 support)
    • v2_5_1

      public static final PluginVersion v2_5_1
      2.5.1 (Skript)
    • v2_5_2

      public static final PluginVersion v2_5_2
      Deprecated.
      (auto-updater not working)
      2.5.2
    • v2_5_3

      public static final PluginVersion v2_5_3
      2.5.3 (auto-updater hotfix)
    • LATEST

      public static final PluginVersion LATEST
      Latest version (from auto-updater)
    • DEV

      public static final PluginVersion DEV
      Dev-builds (auto-updater is disabled)
  • Method Details

    • values

      public static PluginVersion[] 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 PluginVersion 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
    • getOrder

      public int getOrder()
    • isDev

      public boolean isDev()
      Check whether the plugin version is a dev-version (auto-updater is disabled)
      Returns:
      True if plugin is a dev-build
    • getPluginVersion

      public static PluginVersion getPluginVersion()
      Get the plugin's version as enum
    • getVersion

      public static PluginVersion getVersion(String version)
      Get plugin version from a String
    • isOlderThan

      public boolean isOlderThan(@NotNull @NotNull PluginVersion compareVersion)
      Check whether the version is older than a given version