Class 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
      Loads a release manifest from JSON.
      json - Release manifest.
      A release manifest.
      Throws: - If the given JSON was not valid.
    • createUpdateChecker

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