SpigotUpdateChecker

class SpigotUpdateChecker(val resourceId: String, val currentVersion: String) : UpdateChecker

Constructors

Link copied to clipboard
constructor(resourceId: String, currentVersion: String)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun checkForUpdates(): Boolean

Checks if there is an update available

Link copied to clipboard
open override fun checkWithPrint()

Checks if there is an update available and prints a message if there is one asking the end user to update the product.

Link copied to clipboard
open override fun getReleaseData(id: String): JsonObject

Gets the information of a single release Object Sample: { "published_at": "2022-07-15T21:51:46.397962Z", "version": "v0.4.1-SNAPSHOT", "url": "https://github.com/TheProgramSrc/SimpleCoreAPI/releases/tag/v0.4.1-SNAPSHOT", "author_url": "https://github.com/Im-Fran" }