Class ButlerUpdateChecker
java.lang.Object
de.eldoria.eldoutilities.updater.Updater<DefaultUpdateResponse,ButlerUpdateData>
 
de.eldoria.eldoutilities.updater.butlerupdater.ButlerUpdateChecker
- All Implemented Interfaces:
 Runnable,org.bukkit.event.Listener
Updater implementation for butler application.
- Since:
 - 1.1.0
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<DefaultUpdateResponse>checkUpdate(ButlerUpdateData data) The check method will be called after the constructor is called.protected booleanupdate()This version should update the plugin. 
- 
Constructor Details
- 
ButlerUpdateChecker
 
 - 
 - 
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,ButlerUpdateData> - Parameters:
 data- data for plugin updates- Returns:
 - empty optional if the version could not be checked or the latest version.
 
 - 
update
protected boolean update()Description copied from class:UpdaterThis version should update the plugin. If not implemented set theUpdateData.isAutoUpdate()to false.- Overrides:
 updatein classUpdater<DefaultUpdateResponse,ButlerUpdateData> - Returns:
 - true if the update was succesful.
 
 
 -