Class HangarUpdater

java.lang.Object
ua.mcchickenstudio.opencreative.managers.updater.HangarUpdater
All Implemented Interfaces:
Manager, Updater

public final class HangarUpdater extends Object implements Updater
  • Constructor Details

    • HangarUpdater

      public HangarUpdater()
  • Method Details

    • checkUpdates

      public CompletableFuture<String> checkUpdates()
      Description copied from interface: Updater
      Sends web request and checks if new updates of OpenCreative+ are available. It's called once on plugin enable and on command usage.
      Specified by:
      checkUpdates in interface Updater
    • canBeUpdated

      public boolean canBeUpdated()
      Description copied from interface: Updater
      Returns updates availability for OpenCreative+. It gets saved value from Updater.checkUpdates().
      Specified by:
      canBeUpdated in interface Updater
      Returns:
      true - if updates are available, false - if not.
    • init

      public void init()
      Description copied from interface: Manager
      Initialization of manager.
      Specified by:
      init in interface Manager
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: Manager
      Checks if manager is ready to work.
      Specified by:
      isEnabled in interface Manager
      Returns:
      true - if enabled, false - disabled.
    • getName

      public String getName()
      Description copied from interface: Manager
      Returns name of manager, that will be displayed by request in the logs.
      Specified by:
      getName in interface Manager
      Returns:
      name of manager.