Sueta
UP

UpdateCheckerPlus - API

0.2.0

A simple update checker for your plugin

·Plugin

An easy way to check for updates.

How to use the API.

UpdateCheckerPlus.getApi()

'spigotID' is your spigot project ID.
Eg. https://www.spigotmc.org/resources/projectName.projectID/
Eg. https://www.spigotmc.org/resources/updatecheckerplus-api.42212/

'timeout' is how long it tries to connect to spiget.
eg. 500

'currentVersion' is the current version of the plugin being used.

'pluginFileName' is the file name of your plugin

This method returns true if there is a new update and false when there isn't.

UpdateCheckerPlus.getApi().getUpdateBoolean

This method returns a set string if there is an update and another string with there is not one.

UpdateCheckerPlus.getApi().getUpdateString

This method returns the version on the spiget site.

UpdateCheckerPlus.getApi().getVersion

This method returns True if downloading the update was successful and False if not.

UpdateCheckerPlus.getApi().updatePlugin

Wiki

Any issues report here
Click here

Similar projects

Plugin →