Releases: srnyx/annoying-api
Releases · srnyx/annoying-api
1.1.9: Small improvements
- Added DiscordSRV import
- Added
AnnoyingMessage#send(TextChannel)
- Added
AnnoyingUtility#getFileNames(AnnoyingPlugin, String)
- Added
padWithZeros
option toAnnoyingUtility#formatMillis(long, String)
(nowAnnoyingUtility#formatMillis(long, String, boolean)
) - Fixed incorrect key name for
only-player
(nowplayer-only
) inmessages.yml
- Removed
AnnoyingCooldown#getRemainingPretty(String)
Full Changelog: 1.1.8...1.1.9
1.1.8: More utility methods
- Added
%permission%
placeholder forerorr.no-permission
message - Added
AnnoyingPlugin#reload()
- Added
/test reload
to testAnnoyingPlugin#reload()
in test JAR/plugin onTabComplete(AnnoyingSender)
now returns aCollection<String>
to support bothList
s andSet
s- Moved
AnnoyingCommandRegister
,AnnoyingDependency
, andAnnoyingDownload
intodependency
folder - Removed
AnnoyingPlugin#commandRegister
- Added more
AnnoyingSender
methods#getPlayer()
#argEquals(int, String)
- Added more
AnnoyingUtility
methods#getPlayer(String)
#getOnlinePlayerNames()
#getOfflinePlayerNames()
#getAllPlayerNames()
#getWorldNames()
Full Changelog: 1.1.7...1.1.8
1.1.7: Added User-Agent for connections
- Added
User-Agent
header property for HTTP connections - Added
version
comments inmessages.yml
Full Changelog: 1.1.6...1.1.7
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
1.1.5: Improved options handling
- Renamed
AnnoyingOptions#onlyPlayer
toAnnoyingOptions#playerOnly
- Moved
AnnoyingDownloadFinish
intoAnnoyingDownload
and renamed toFinishTask
(so its now
AnnoyingDownload.FinishTask`) - Moved
AnnoyingDownload
andAnnoyingDependency
out ofdownload
folder - Moved
AnnoyingMessage#getString(String)
intoAnnoyingUtility
- Removed
download
folder - Improved
AnnoyingOptions
- Added
#dependencies
- Added
#dependencyFinishTask
- Renamed
#messages
to#messagesFileName
and it's now aString
instead ofAnnoyingResource
- Added
- Improved
AnnoyingPlugin
- Added
#messages
- Made
#options
final so you can only modify it`s variables - Initialized
#messages
in constructor - Translated
AnnoyingOptions#prefix
,AnnoyingOptions#splitterJson
, andAnnoyingOptions#splitterPlaceholder
into their messages from#messages
- Removed
#getOptions
(instead, edit#options
in your own constructor [just make sure to callsuper()
]) - Removed
#getDependencies
(now inAnnoyingOptions
) - Removed
#getDependencyFinish
(now inAnnoyingOptions
)
- Added
Full Changelog: 1.1.4...1.1.5
1.1.3 & 1.1.4
1.1.4
Had to make a new release because I messed up 1.1.3, which messed up Jitpack. Sorry :(
1.1.3
build.gradle.kts
:- Added
net.md-5.bungeecord-api
dependency
- Added
messages.yml
:- Added
PLACEHOLDER PARAMETERS
wiki section
- Added
AnnoyingCooldown
:- Put
AnnoyingCooldownType
intoAnnoyingCooldown
and renamed it toCooldownType
(so it's nowAnnoyingCooldown.CooldownType
)
- Put
AnnoyingPlugin
:- Replaced
String#join(ChatSequence, CharSequence...)
usage withStringUtils#repeat(String, int)
- Replaced
AnnoyingUtility
:- Replaced
#formatMillis(Date, String)
with#formatMillis(long, String)
, which usesDurationFormatUtils#formatDuration(long, String)
- Added
#formatDouble(double, String)
- Added
#jsonToTextComponent(JSONComponent)
- Replaced
AnnoyingDownload
:- Put
AnnoyingPlatform
intoAnnoyingDownload
and renamed it toPlatform
(so it's nowAnnoyingDownload.Platform
)
- Put
AnnoyingMessage
:- Put
AnnoyingBroadcast
intoAnnoyingMessage
and renamed it toBroadcastType
(so it's nowAnnoyingMessage.BroadcastType
) - Put
AnnoyingReplaceType
intoAnnoyingMessage
and renamed it toReplaceType
(so it's nowAnnoyingMessage.ReplaceType
) - Replaced
#broacast(AnnoyingBroadcast, AnnoyingTitle)
with#broadcast(BroadcastType, int, int, int)
- Renamed
#getMessage(String)
to#getString(String)
- Fixed
#replace(String, Object, ReplaceType)
- Removed
AnnoyingTitle
- Added
#replaceParameter(Object, String, Replacetype)
(private) - Added
#getComponents()
- Added
#getComponents(AnnoyingSender)
- Added
#getBaseComponents()
- Added
#getBaseComponents(AnnoyingSender)
- Added
#getMessage()
- Added
#getMessage(AnnoyingSender)
- Put
Full Changelog: 1.1.2...1.1.4
1.1.2: Hotfix for AnnoyingCooldown
Collections.emptyMap()
creates an unmodifiable Map
, replacing with new HasMap<>()
should fix it
Full Changelog: 1.1.1...1.1.2
1.1.1: New AnnoyingMessage method and more
- Added
AnnoyingMessage#replace(String, String, AnnoyingReplaceType)
for special message placeholders, allowing user to input custom patterns for things like times (ex:%time==hh:ss%
) - Made
AnnoyingCommand#onTabComplete
default so that you aren't required to override it (will returnnull
by default) - Improved
AnnoyingCooldown
, you now have to useAnnoyingCooldown#start
to begin a cooldown
Full Changelog: 1.1.0...1.1.1
1.1.0: Backwards compatibility
- Switched from Java 17 to Java 8
- Switched from MC 1.19 to MC 1.11
- Made
onEnable
andonDisable
final so that they can't be overridden (overrideenable
anddisable
instead)
Full Changelog: 1.0.1...1.1.0