Package de.eldoria.eldoutilities.updater
Class UpdateDataBuilder<T extends UpdateDataBuilder<?,?>,V extends UpdateData<?>>
java.lang.Object
de.eldoria.eldoutilities.updater.UpdateDataBuilder<T,V>
- Direct Known Subclasses:
ButlerUpdateDataBuilder
,LynaUpdateDataBuilder
,SpigotUpdateDataBuilder
public abstract class UpdateDataBuilder<T extends UpdateDataBuilder<?,?>,V extends UpdateData<?>>
extends Object
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoUpdate
(boolean autoUpdate) abstract V
build()
notifyPermission
(String notifyPermission) notifyUpdate
(boolean notifyUpdate) updateMessage
(String updateMessage) Set the update notification message.
-
Field Details
-
plugin
-
notifyPermission
-
notifyUpdate
protected boolean notifyUpdate -
autoUpdate
protected boolean autoUpdate -
updateUrl
-
updateMessage
-
-
Constructor Details
-
UpdateDataBuilder
-
-
Method Details
-
notifyPermission
-
notifyUpdate
-
autoUpdate
-
updateUrl
-
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 updateUrl(String)
- Parameters:
updateMessage
- the update message to be sent- Returns:
- builder instance
-
build
-