forked from gravitylow/Updater
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a "shouldUpdate" method which can be easily edited.
Because of all the confusion regarding different versioning schemes and trying to use them to determine the "validity" of a file present on BukkitDev as a "new" version, Updater only does a string comparison to see if the newest file's version is different than the current version. If so, it will consider it a "valid" update. I've added a new method that will allow anyone who has a specific, constant versioning scheme that they use in their plugins to more easily implement a mathematical comparison.
- Loading branch information
1 parent
54b4810
commit 69ef5ca
Showing
1 changed file
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters