- All Superinterfaces:
Manager, Startable
- All Known Implementing Classes:
HangarUpdater
Updater
This interface represents a update manager,
that tells server to update or not.
-
Method Summary
boolean
Returns updates availability for OpenCreative+.
Sends web request and checks if new updates
of OpenCreative+ are available.
Methods inherited from interface ua.mcchickenstudio.opencreative.managers.Manager
getName
Methods inherited from interface ua.mcchickenstudio.opencreative.managers.Startable
start
-
Method Details
-
checkUpdates
Sends web request and checks if new updates
of OpenCreative+ are available. It's called once
on plugin enable and on command usage.
-
canBeUpdated
boolean canBeUpdated()
Returns updates availability for OpenCreative+.
It gets saved value from
checkUpdates().
- Returns:
- true - if updates are available, false - if not.