- Added option to show a support link (thanks @lokka30)
- Switched to new SpigotMC API
- Added support for Polymart
- Fixed console not showing the custom plugin name when using setNamePaidVersion and setNameFreeVersion
Added support for GitHub Release tags.
Example:
UpdateChecker updateChecker = new UpdateChecker(myPugin, UpdateCheckSource.GITHUB_RELEASE_TAG, "JEFF-Media-GbR/ChestSort");
- Added support for Spiget
- Switched from static init() methods and static getInstance() method to a regular constructor. Since more than one UpdateChecker instances can exist at the same time, you are expected to keep track of the instance(s) you created yourself.
- Changed Maven GroupID to com.jeff_media and Java Package name to com.jeff_media.updatechecker
This is how to create a new UpdateChecker as of 2.0.0 now:
// Get version information from SpigotMC.org ("12345" is your SpigotMC resource ID):
UpdateChecker updateChecker = new UpdateChecker(myPlugin, UpdateCheckSource.SPIGOT, "12345");
// Get version information from Spiget.org ("12345" is your SpigotMC resource ID):
UpdateChecker updateChecker = new UpdateChecker(myPlugin, UpdateCheckSource.SPIGET, "12345");
// Get version information from an HTTP(S) URL:
UpdateChecker updateChecker = new UpdateChecker(myPlugin, UpdateCheckSource.SPIGOT, "https://api.jeff-media.com/chestsort/latest-version.txt");
Attached javadocs and sources
Added UpdateChecker#setUsedVersion(String)
Reduced file size from 248KB to 33KB by getting rid of the maven-artifact dependency.
Changed relocation of dependencies in pom.xml
Changed console output formatting a tiny bit
Fixed message "Could not check for updates" being shown to OPs on join when an update check hasn't been done yet
Fixed checkNow()
, checkNow(CommandSender...)
and stop()
not returning the instance
Detects whether the currently used version is newer than the version found by the UpdateChecker
Added support for custom tasks to run after update checks
Initial release