Klasse UpdateChecker
java.lang.Object
de.delinkedde.mobarenareborn.update.UpdateChecker
Optional, opt-in version check against a configured endpoint.
The checker is disabled by default. When enabled it performs a single asynchronous HTTP GET to
update-checker.url on start-up, expects a plain-text latest-version string in the response
body, and logs whether a newer version is available. The check never blocks the server thread and
never throws into start-up: any failure is logged at warning level and otherwise ignored.
The endpoint is operator-supplied (for example a raw text file in a release repository), so the plugin makes no outbound request unless an administrator both enables the feature and provides a URL.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungUpdateChecker(@NotNull MobArenaPlugin plugin, @NotNull ConfigManager config, @NotNull String currentVersion) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidRuns the check asynchronously when enabled and configured.
-
Konstruktordetails
-
UpdateChecker
public UpdateChecker(@NotNull @NotNull MobArenaPlugin plugin, @NotNull @NotNull ConfigManager config, @NotNull @NotNull String currentVersion) - Parameter:
plugin- the owning plugin, used for scheduling and loggingconfig- the configuration managercurrentVersion- the running plugin version
-
-
Methodendetails
-
checkAsync
public void checkAsync()Runs the check asynchronously when enabled and configured. Does nothing otherwise.
-