Package ch.njol.skript.update
Class ReleaseManifest
java.lang.Object
ch.njol.skript.update.ReleaseManifest
Describes a Skript release.
-
Field Summary
Modifier and TypeFieldDescriptionWhen the release was published.@Nullable String
Source for downloads.Flavor of the release.Release id, for example "2.3".Class<? extends UpdateChecker>
Type of update checker to use for this release.Source where updates for this release can be found, if there are updates. -
Constructor Summary
ConstructorDescriptionReleaseManifest(String id, String date, String flavor, Class<? extends UpdateChecker> updateCheckerType, String updateSource, @Nullable String downloadSource)
-
Method Summary
Modifier and TypeMethodDescriptionCreates an instance of the updater used by this type.static ReleaseManifest
Loads a release manifest from JSON.
-
Field Details
-
id
Release id, for example "2.3". -
date
When the release was published. -
flavor
Flavor of the release. For example "github" or "custom". -
updateCheckerType
Type of update checker to use for this release. -
updateSource
Source where updates for this release can be found, if there are updates. -
downloadSource
Source for downloads. If null, update checker will figure out it.
-
-
Constructor Details
-
ReleaseManifest
-
-
Method Details
-
load
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
Creates an instance of the updater used by this type.- Returns:
- New updater instance.
-