Improvement | Due to caching changes on Spigot the latest version of a plugin returned from the websites API can take multiple hours before updating to the correct version. E.g. your version is 1.0.1 but Spigot still incorrectly returns 1.0.0 as the latest version.
Due to the large number of "The plugin says there is a new version available, but I already downloaded the latest version" messages I've been receiving I've gone ahead and implemented a parser that'll only notify you of updates if the version on your server is less than the one on Spigot. If you're on 1.0.1 and Spigot returns 1.0.0 you'll no longer get an incorrect notification.
Refactoring | Slightly changed the execution of commands. Instead of casting the sender to a Player or null we're simply invoking the isOp() method directly on the CommandSender.
Refactoring & Annotations | The Spigot 1.14 source makes heavy use of JetBrains annotations and enforces certain constraints. QuickClose now makes use of those same annotations. Other than that a few minor changes have been made to the QC source.
Permission Default | Added the quickclose.update permission to plugin.yml and set the permission default to false to comply with the UpdateCheckerPermissionOnly setting.
Permission | A new permission has been added: quickclose.use. All players have this permission by default. If you want to block some players from using QuickClose you can give them -quickclose.use.
Addition | You can now specify whether all OPs should be notified of updates or only those who have the appropriate permission. The following has been added to the config.yml file:
Code (YAML):
# false: All OPs are notified of a new update when they join. # true: OPs are only notified if they have the quickclose.update permission as well. # N.B. any user with the quickclose.update permission is notified; OP or not. UpdateCheckerPermissionOnly: false
The above is the default. You do not have to add the above unless you wish to change it to true.
Permission | Players' with the quickclose.update permission are notified of new updates once they are available.
Fix | The plugin.yml version wasn't correctly updated which resulted in the update checker printing that a new version was available even though you were running the latest. This has been fixed.
Tab Completion | As this is a quality of life plugin tab completion is definitely a must! For operators, the /quickclose command will now automatically suggest the reload command if you haven't typed anything (after the space press) or if the current input is the start of the word reload.
Update Checker | With this update and onwards a message is printed in the console when a new update is available on Spigotmc. OP's are also notified of new updates when they join. You may disable the Update Checker by adding the following to your config.yml:
Code (YAML):
# Enable or disable the update checker. UpdateCheckerEnabled: false
By default, the Update Checker is enabled. If you do not wish to disable it you do not have to add the above.