Class ADPUpdater
- java.lang.Object
-
- com.alessiodp.core.common.addons.internal.ADPUpdater
-
public class ADPUpdater extends Object
-
-
Constructor Summary
Constructors Constructor Description ADPUpdater()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidasyncCheckUpdates()Asynchronous check for updatesvoidasyncTaskCheckUpdates()Make asynchronous task to check for updates every daybooleancheckVersion(String remoteVersion, String currentVersion)Parse latest versionvoidreload(String pluginResourceId, boolean checkForUpdates, boolean warnUpdates, ADPPermission warnPermission, String warnMessage)Reload updater
-
-
-
Method Detail
-
reload
public void reload(String pluginResourceId, boolean checkForUpdates, boolean warnUpdates, ADPPermission warnPermission, String warnMessage)
Reload updater- Parameters:
pluginResourceId- id of the spigot plugincheckForUpdates- toggle check for updateswarnUpdates- toggle warnings on new updateswarnPermission- permission necessary to receive the warningwarnMessage- the warning message
-
asyncTaskCheckUpdates
public void asyncTaskCheckUpdates()
Make asynchronous task to check for updates every day
-
asyncCheckUpdates
public void asyncCheckUpdates()
Asynchronous check for updates
-
-