Class Updater
java.lang.Object
me.github.simonplays15.betterbansystem.core.Updater
The Updater class is responsible for checking for updates of a resource.
-
Constructor Summary
ConstructorsConstructorDescriptionUpdater()
The Updater class is responsible for checking for updates of a resource. -
Method Summary
Modifier and TypeMethodDescriptionvoid
getVersion
(Consumer<String> version) Retrieves the version of a resource.
-
Constructor Details
-
Updater
public Updater()The Updater class is responsible for checking for updates of a resource.
-
-
Method Details
-
getVersion
Retrieves the version of a resource. This method fetches the version by querying a specific URL and passes the result to the provided consumer. If an exception occurs during the process, an error message is logged using a global logger.- Parameters:
version
- the consumer that accepts the version string
-