Class HangarUpdater
java.lang.Object
ua.mcchickenstudio.opencreative.managers.updater.HangarUpdater
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns updates availability for OpenCreative+.Sends web request and checks if new updates of OpenCreative+ are available.getName()Returns name of manager, that will be displayed by request in the logs.voidinit()Initialization of manager.booleanChecks if manager is ready to work.
-
Constructor Details
-
HangarUpdater
public HangarUpdater()
-
-
Method Details
-
checkUpdates
Description copied from interface:UpdaterSends web request and checks if new updates of OpenCreative+ are available. It's called once on plugin enable and on command usage.- Specified by:
checkUpdatesin interfaceUpdater
-
canBeUpdated
public boolean canBeUpdated()Description copied from interface:UpdaterReturns updates availability for OpenCreative+. It gets saved value fromUpdater.checkUpdates().- Specified by:
canBeUpdatedin interfaceUpdater- Returns:
- true - if updates are available, false - if not.
-
init
-
isEnabled
-
getName
-