Package wtf.choco.arrows.utils
Class UpdateChecker.UpdateResult
java.lang.Object
wtf.choco.arrows.utils.UpdateChecker.UpdateResult
- Enclosing class:
- UpdateChecker
public final class UpdateChecker.UpdateResult extends Object
Represents a result for an update query performed by
UpdateChecker.requestUpdateCheck()
.-
Method Summary
Modifier and Type Method Description @NotNull String
getNewestVersion()
Get the latest version of the plugin.@NotNull UpdateChecker.UpdateReason
getReason()
Get the constant reason of this result.boolean
requiresUpdate()
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
-