Interface4 will now not only auto update, but has an auto update API so that you can update your own plugins automatically (Provided the resource ID and an instance of the Plugin)
projectID is the integer at the end of a plugin's Spigot link (For example, Interface4 has a projectID of 102119)
Return values:
'true' - the plugin was successfully updated and the server must be restarted for changes to apply
'false' - an error occurred while updating the plugin
'null' - the plugin is already running the latest version
Code (Java):
VersionUtils.
updatePlugin(Plugin plugin,
int projectID
); VersionUtils.
updatePlugin(Plugin plugin,
int projectID,
String versionURL
);
Duplicate as version posted 30 minutes ago had outdated version string