java.lang.Object
me.github.simonplays15.betterbansystem.core.Updater

public class Updater extends Object
The Updater class is responsible for checking for updates of a resource.
  • Constructor Details

    • Updater

      public Updater()
      The Updater class is responsible for checking for updates of a resource.
  • Method Details

    • getVersion

      public void getVersion (Consumer<String> version)
      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