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

public final class HangarUpdater extends Object implements Updater, Startable
  • Constructor Details

    • HangarUpdater

      public HangarUpdater()
  • Method Details

    • checkUpdates

      @NotNull public @NotNull 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.
    • start

      public void start()
      Description copied from interface: Startable
      Does tasks on start.
      Specified by:
      start in interface Startable
    • getName

      @NotNull public @NotNull 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.