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 Details

    • plugin

      protected final Plugin plugin
    • notifyPermission

      protected String notifyPermission
    • notifyUpdate

      protected boolean notifyUpdate
    • autoUpdate

      protected boolean autoUpdate
    • updateUrl

      protected String updateUrl
    • updateMessage

      protected String updateMessage
  • Constructor Details

    • UpdateDataBuilder

      public UpdateDataBuilder(Plugin plugin)
  • Method Details

    • notifyPermission

      public T notifyPermission(String notifyPermission)
    • notifyUpdate

      public T notifyUpdate(boolean notifyUpdate)
    • autoUpdate

      public T autoUpdate(boolean autoUpdate)
    • updateUrl

      public T updateUrl(String updateUrl)
    • updateMessage

      public T updateMessage(String updateMessage)
      Set the update notification message. Provides some placeholders to modify the message with runtime information
      Available 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

      public abstract V build()