2.0.3: Reworked AnnoyingMessage replacements
Details
-
FilenameAnnoyingAPI-2.0.3.jar
-
Uploaded by
-
UploadedJan 4, 2023
-
Size46.08 KB
-
Downloads166
-
MD5594c733ee78d8b022a0069f38e488aca
Supported Bukkit Versions
- 1.19.3
- 1.19.2
- 1.19.1
- 1.19
- 1.18.2
- 1.18.1
- 1.18
- 1.17
- 1.16
- 1.15
- 1.14
- 1.13
- 1.12
- 1.11
Changelog
- Fix Gradle placeholders
- Add
loadMessages()and more changesmessages.ymlloading 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
AnnoyingMessagereplacements- Added
AnnoyingMessage#Replacement, which holds information about a replacement - Added
#splitterPlaceholderwhich will keep the parameter placeholder splitter cached #replacementsis 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
PluginManagerto reload the plugin. Instead, it will only reloadAnnoyingPlugin#messagesand 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 doannoyingSender.argEquals(0, "string1", "string2")
- Instead of doing
- Add
PlayerDamageByPlayerEvent(#1) - Make Jetbrains Annotations use
compileOnlyApi - Change
PlayerJoinEventexample toPlayerDamageByPlayerEvent - Add
attackmessage key - Bump version (2.0.3)
Full Changelog: github.com/srnyx/annoying-api/compare/2.0.2...2.0.3