Class BukkitUpdater
java.lang.Object
io.github.bakedlibs.dough.updater.BukkitUpdater
- All Implemented Interfaces:
PluginUpdater<SemanticVersion>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SemanticVersionprotected final CompletableFuture<SemanticVersion> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetFile()protected voidscheduleAsyncUpdateTask(io.github.bakedlibs.dough.updater.UpdaterTask<SemanticVersion> task) voidsetConnectionTimeout(int timeout) voidstart()
-
Field Details
-
currentVersion
-
latestVersion
-
-
Constructor Details
-
BukkitUpdater
-
-
Method Details
-
start
public void start() -
getConnectionTimeout
public int getConnectionTimeout()- Specified by:
getConnectionTimeoutin interfacePluginUpdater<V extends Version>
-
setConnectionTimeout
public void setConnectionTimeout(int timeout) -
getPlugin
- Specified by:
getPluginin interfacePluginUpdater<V extends Version>
-
getLogger
-
getFile
- Specified by:
getFilein interfacePluginUpdater<V extends Version>
-
getCurrentVersion
- Specified by:
getCurrentVersionin interfacePluginUpdater<V extends Version>
-
getLatestVersion
- Specified by:
getLatestVersionin interfacePluginUpdater<V extends Version>
-
scheduleAsyncUpdateTask
protected void scheduleAsyncUpdateTask(@Nonnull io.github.bakedlibs.dough.updater.UpdaterTask<SemanticVersion> task)
-