Package de.eldoria.eldoutilities.updater
Class UpdateData<T extends UpdateResponse>
java.lang.Object
de.eldoria.eldoutilities.updater.UpdateData<T>
- Direct Known Subclasses:
ButlerUpdateData,LynaUpdateData,SpigotUpdateData
Update data base implementation.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateData(org.bukkit.plugin.Plugin plugin, String notifyPermission, boolean notifyUpdate, boolean autoUpdate, String updateUrl, String updateMessage) Creates a new Update data. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanorg.bukkit.plugin.Pluginplugin()replacements(T updateResponse) updateMessage(T updateResponse)
-
Constructor Details
-
UpdateData
public UpdateData(org.bukkit.plugin.Plugin plugin, String notifyPermission, boolean notifyUpdate, boolean autoUpdate, String updateUrl, String updateMessage) Creates a new Update data.- Parameters:
plugin- plugin to check the version fornotifyPermission- 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 loginautoUpdate- true if the updater should attempt to update the plugin. If true the updater should implement theUpdater.update()method.
-
-
Method Details
-
notifyPermission
-
isNotifyUpdate
public boolean isNotifyUpdate() -
plugin
public org.bukkit.plugin.Plugin plugin() -
isAutoUpdate
public boolean isAutoUpdate() -
replacements
-
updateMessage
-