Package net.ssterling.updatechecker
Class UpdateChecker
java.lang.Object
net.ssterling.updatechecker.UpdateChecker
The
UpdateChecker
class consists of tools to check for an update
to a Spigot plugin, as well as the information needed to do such.- Since:
- 1.0.0
- Version:
- 1.1.1
- Author:
- Seth Price
-
Constructor Summary
ConstructorDescriptionUpdateChecker
(String project_id, String current_version) Constructs anUpdateChecker
object. -
Method Summary
-
Constructor Details
-
UpdateChecker
Constructs anUpdateChecker
object.- Parameters:
project_id
- The project ID of the plugin, found in the project URL.current_version
- The current version of the plugin.
-
-
Method Details
-
check
Checks for updates to the plugin.- Returns:
- new version if update exists, null otherwise
- Throws:
Throwable
- Since:
- 1.0.0
-