Class LynaUpdateDataBuilder
java.lang.Object
de.eldoria.eldoutilities.updater.UpdateDataBuilder<LynaUpdateDataBuilder,LynaUpdateData>
de.eldoria.eldoutilities.updater.lynaupdater.LynaUpdateDataBuilder
-
Field Summary
Fields inherited from class de.eldoria.eldoutilities.updater.UpdateDataBuilder
autoUpdate, notifyPermission, notifyUpdate, plugin, updateMessage, updateUrl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
updateMessage
(String updateMessage) Set the update notification message.Methods inherited from class de.eldoria.eldoutilities.updater.UpdateDataBuilder
autoUpdate, notifyPermission, notifyUpdate, updateUrl
-
Constructor Details
-
LynaUpdateDataBuilder
-
-
Method Details
-
host
-
updateMessage
Set the update notification message. Provides some placeholders to modify the message with runtime informationAvailable placeholder plugin_name The name of the plugin new_version The new version string current_version The current version string website The website set in the plugin.yml or provided by UpdateDataBuilder.updateUrl(String)
Available Lyna placeholder new_time Pretty formatted duration string showing the time since new version was published current_time Pretty formatted duration string showing the time since current version was published new_date_time The date and time the version was published current_date_time The date and time the current used version was published - Overrides:
updateMessage
in classUpdateDataBuilder<LynaUpdateDataBuilder,
LynaUpdateData> - Parameters:
updateMessage
- the update message to be sent- Returns:
- builder instance
-
build
- Specified by:
build
in classUpdateDataBuilder<LynaUpdateDataBuilder,
LynaUpdateData>
-