Class ReleaseManifest

java.lang.Object
ch.njol.skript.update.ReleaseManifest

public class ReleaseManifest extends Object
Describes a Skript release.
  • Field Details

    • id

      public final String id
      Release id, for example "2.3".
    • date

      public final String date
      When the release was published.
    • flavor

      public final String flavor
      Flavor of the release. For example "github" or "custom".
    • updateCheckerType

      public final Class<? extends UpdateChecker> updateCheckerType
      Type of update checker to use for this release.
    • updateSource

      public final String updateSource
      Source where updates for this release can be found, if there are updates.
    • downloadSource

      public final @Nullable String downloadSource
      Source for downloads. If null, update checker will figure out it.
  • Constructor Details

  • Method Details

    • load

      public static ReleaseManifest load(String json) throws com.google.gson.JsonParseException
      Loads a release manifest from JSON.
      Parameters:
      json - Release manifest.
      Returns:
      A release manifest.
      Throws:
      com.google.gson.JsonParseException - If the given JSON was not valid.
    • createUpdateChecker

      public UpdateChecker createUpdateChecker()
      Creates an instance of the updater used by this type.
      Returns:
      New updater instance.