Class UpdateData<T extends UpdateResponse>

java.lang.Object
de.eldoria.eldoutilities.updater.UpdateData<T>
Direct Known Subclasses:
ButlerUpdateData, LynaUpdateData, SpigotUpdateData

public abstract class UpdateData<T extends UpdateResponse> extends Object
Update data base implementation.
Since:
1.0.0
  • Constructor Details

    • UpdateData

      public UpdateData(Plugin plugin, String notifyPermission, boolean notifyUpdate, boolean autoUpdate, String updateUrl, String updateMessage)
      Creates a new Update data.
      Parameters:
      plugin - plugin to check the version for
      notifyPermission - enter the permission which a user should have to get a notification. null to disable login notification.
      notifyUpdate - set to true to notify admins on login
      autoUpdate - true if the updater should attempt to update the plugin. If true the updater should implement the Updater.update() method.
  • Method Details

    • notifyPermission

      public String notifyPermission()
    • isNotifyUpdate

      public boolean isNotifyUpdate()
    • plugin

      public Plugin plugin()
    • isAutoUpdate

      public boolean isAutoUpdate()
    • replacements

      protected Map<String,Object> replacements(T updateResponse)
    • updateMessage

      public String updateMessage(T updateResponse)