1.1.6: Dependency download improvements
- Small improvements for
AnnoyingMessage
- Merged
AnnoyingCooldown#check()
intoAnnoyingCooldown#isOnCooldown()
AnnoyingUtility#getString(AnnoyingPlugin, String)
now checks ifAnnoyingPlugin#messages
isnull
- Added
ApiCommand
to give the API plugin a command to get the API's version- Added
version
message tomessages.yml
- Added
commands
andpermissions
sections toplugin.yml
- Added
- Added
AnnoyingCommandRegister
- This has methods to register commands from another plugin
- Used when downloading/enabling dependencies
- Added test JAR
- The test JAR is a plugin that uses the API
- This will allow me to more easily test stuff before release
- The plugin contains a simple command, listener, dependency, and a few other tests
- Improved
AnnoyingDependency
- Added
#enableAfterDownload
option, iftrue
, AnnoyingAPI will attempt to load/enable the plugin once it's downloaded - Added
#getFile()
to get theFile
of the new JAR file of the dependency - Changed
#isInstalled()
to#isNotInstalled()
because it was always inverted
- Added
- Improved
AnnoyingDownload
#dependencies
is now aList
, so they will be installed in the order of when they were added (roughly, threads mess it up a bit)- Removed
#finishTask
,FinishTask
, andAnnoyingOptions#dependencyFinishTask
- If the Spigot plugin is external and the external URL ends with
.jar
, it will treat it as aPlatform.EXTERNAL
#finish
(now#finish(AnnoyingDependency, boolean)
) has been improved to allow dependencies to be loaded, enabled, and their commands registered- Added
#registerCommands(Plugin)
to register a plugin's (dependency) commands
- Improved
AnnoyingPlugin
- Added static
#missingDependencies
to track the missing dependencies from ALL plugins using the API - Added static
#commandRegister
to initialize a newAnnoyingCommandRegister
- Moved API option setting from the constructor to
#onEnable()
- Adjusted algorithm for getting missing dependencies
- Only run
AnnoyingDownload#downloadPlugins
from the API instance
- Added static
Full Changelog: 1.1.5...1.1.6