Class SpigotUpdateChecker
java.lang.Object
de.eldoria.eldoutilities.updater.Updater<DefaultUpdateResponse,SpigotUpdateData>
de.eldoria.eldoutilities.updater.spigotupdater.SpigotUpdateChecker
Updater implementation for spigot update check.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<DefaultUpdateResponse> checkUpdate(SpigotUpdateData data) The check method will be called after the constructor is called.Methods inherited from class de.eldoria.eldoutilities.updater.Updater
client, declineAutoUpdate, download, enableAutoUpdate, getData, isAutoUpdate, isMajorUpdate, lyna, offersAutoUpdate, offersDownload, performCheck, reconfigure, run, spigot, start, stop, update, updatesAutomatically
-
Constructor Details
-
SpigotUpdateChecker
-
-
Method Details
-
checkUpdate
Description copied from class:UpdaterThe check method will be called after the constructor is called.This method should be implemented as follows:
Retrieve the latest version of the plugin from any update service.
return the latest version or a empty optional if the version could not be checked.
- Specified by:
checkUpdatein classUpdater<DefaultUpdateResponse,SpigotUpdateData> - Parameters:
data- data for plugin updates- Returns:
- empty optional if the version could not be checked or the latest version.
-