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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionautoUpdate(boolean autoUpdate) abstract Vbuild()notifyPermission(String notifyPermission) notifyUpdate(boolean notifyUpdate) updateMessage(String updateMessage) Set the update notification message.
-
Field Details
-
plugin
protected final org.bukkit.plugin.Plugin plugin -
notifyPermission
-
notifyUpdate
protected boolean notifyUpdate -
autoUpdate
protected boolean autoUpdate -
updateUrl
-
updateMessage
-
-
Constructor Details
-
UpdateDataBuilder
public UpdateDataBuilder(org.bukkit.plugin.Plugin plugin)
-
-
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
-