- Fix Gradle placeholders
- Add
loadMessages()
and more changesmessages.yml
loading has been moved into it's own method,AnnoyingPlugin#loadMessages()
- Removed translating some of the message options keys into their strings from
messages.yml
- Getting missing dependencies and their names improved
- Completely reworked
AnnoyingMessage
replacements- Added
AnnoyingMessage#Replacement
, which holds information about a replacement - Added
#splitterPlaceholder
which will keep the parameter placeholder splitter cached #replacements
is now aSet<Replacement>
instead of aMap<String, String>
- Reorganized some methods
- Parameter placeholder replacements will no longer be processed immediately. This will ensure that all parts of a message (sub-messages, JSON components, etc...) will get the replacement processed.
- Added
- Adjusted reload logic
- Will no longer use
PluginManager
to reload the plugin. Instead, it will only reloadAnnoyingPlugin#messages
and then runAnnoyingPlugin#reload()
, which a plugin using the API can override.
- Will no longer use
- Multiple strings for
AnnoyingSender#argEquals(int String...)
- Instead of doing
annoyingSender.argEquals(0, "string1") || annoyingSender.argEquals(0, "string2")
, you can now do `annoyingSender.argEquals(0, "string1", "string2")
- Instead of doing
- Add
PlayerDamageByPlayerEvent
(#1) - Make Jetbrains Annotations use
compileOnlyApi
- Change
PlayerJoinEvent
example toPlayerDamageByPlayerEvent
- Add
attack
message key - Bump version (2.0.3)
Full Changelog: github.com/srnyx/annoying-api/compare/2.0.2...2.0.3
- Update README.md
- Remove
api-version
fromplugin.yml
- Adjust
AnnoyingFile#load()
- Now checks
#canBeEmpty()
- Now checks
- Added
required
option toAnnoyingDependency
- Adjusted how dependencies are handled
- Remove commands from map on unload
- Use a more graceful command unregister
- Adjusted Javadocs
- Added new Javadocs and modified existing ones
- Renamed
AnnoyingPlugin#reload()
toAnnoyingPlugin#reloadPlugin()
- 1.1.11: Adjusted messages and dependencies
- Moved
AnnoyingUtility#getString(AnnoyingPlugin, String)
toAnnoyingPlugin
(nowAnnoyingUtility#getMessagesString(String)
) - Renamed
AnnoyingPlugin#unloadPlugin()
toAnnoyingPlugin#disablePlugin()
- If required dependencies are missing it'll tell the user ALL of the missing required dependencies
- Added
/test disable
command toTestPlugin
that will disable/unregister the/test
command - Modified
TestPlugin
msgs.yml
- Moved
Full Changelog: github.com/srnyx/annoying-api/compare/1.1.10...1.1.11
- Fixed
AnnoyingUtility#getFileNames(AnnoyingPlugin, String)
(made it static) - Removed
AnnoyingMessage#send(TextChannel)
- Removed DiscordSRV dependency and repositories
Full Changelog: github.com/srnyx/annoying-api/compare/1.1.9...1.1.10
- 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: https://github.com/srnyx/annoying-api/compare/1.1.8...1.1.9
- 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: github.com/srnyx/annoying-api/compare/1.1.7...1.1.8
- Added
User-Agent
header property for HTTP connections - Added
version
comments inmessages.yml
Full Changelog: github.com/srnyx/annoying-api/compare/1.1.6...1.1.7