Class UpdateChecker.UpdateResult
java.lang.Object
rocks.gravili.notquests.paper.managers.UpdateChecker.UpdateResult
- Enclosing class:
- UpdateChecker
Represents a result for an update query performed by
UpdateChecker.requestUpdateCheck()
.-
Method Summary
Modifier and TypeMethodDescriptionGet the latest version of the plugin.Get the constant reason of this result.boolean
Check whether or not this result requires the user to update.
-
Method Details
-
getReason
Get the constant reason of this result.- Returns:
- the reason
-
requiresUpdate
public boolean requiresUpdate()Check whether or not this result requires the user to update.- Returns:
- true if requires update, false otherwise
-
getNewestVersion
Get the latest version of the plugin. This may be the currently installed version, it may not be. This depends entirely on the result of the update.- Returns:
- the newest version of the plugin
-