init

open fun init(plugin: JavaPlugin, pluginID: Int, versionScheme: UpdateChecker.VersionScheme): UpdateChecker(source)

Initialize this update checker with the specified values and return its instance. If an instance of UpdateChecker has already been initialized, this method will act similarly to get (which is recommended after initialization).

Return

the UpdateChecker instance

Parameters

plugin

the plugin for which to check updates. Cannot be null

pluginID

the ID of the plugin as identified in the SpigotMC resource link. For example, "https://www.spigotmc.org/resources/veinminer.12038/" would expect "12038" as a value. The value must be greater than 0

versionScheme

a custom version scheme parser. Cannot be null


open fun init(plugin: JavaPlugin, pluginID: Int): UpdateChecker(source)

Initialize this update checker with the specified values and return its instance. If an instance of UpdateChecker has already been initialized, this method will act similarly to get (which is recommended after initialization).

Return

the UpdateChecker instance

Parameters

plugin

the plugin for which to check updates. Cannot be null

pluginID

the ID of the plugin as identified in the SpigotMC resource link. For example, "https://www.spigotmc.org/resources/veinminer.12038/" would expect "12038" as a value. The value must be greater than 0