Add support for minimessages and other formats (like hex colors)#463
Open
Dianelito wants to merge 5 commits intoespidev:masterfrom
Open
Add support for minimessages and other formats (like hex colors)#463Dianelito wants to merge 5 commits intoespidev:masterfrom
Dianelito wants to merge 5 commits intoespidev:masterfrom
Conversation
…ows sending messages formatted with MiniMessage when a player enters or leaves a region. Two new custom flags have been registered: ps-greeting and ps-farewell. This solves the "double message" issue that occurs when trying to override the standard WorldGuard flags, as it allows silencing the originals and using only ProtectionStones flags with MiniMessage support. The Action Bar flags (greeting-action and farewell-action) now also use native MiniMessage through Adventure.
…ows sending messages formatted with MiniMessage when a player enters or leaves a region. Two new custom flags have been registered: ps-greeting and ps-farewell. This solves the "double message" issue that occurs when trying to override the standard WorldGuard flags, as it allows silencing the originals and using only ProtectionStones flags with MiniMessage support. The Action Bar flags (greeting-action and farewell-action) now also use native MiniMessage through Adventure.
…ly convert any legacy message (& or §) to MiniMessage before sending it. The method legacyToMiniMessage(String) has been added, which performs a robust conversion of old color codes and BungeeCord hexadecimal formats to MiniMessage tags. This ensures compatibility with existing configurations.
…ents to players and the console. A static getAdventure() method has been added to easily access the API from other classes. The createProtectBlockItem method has been updated to allow the use of MiniMessage in the names and descriptions of the Protection Stones defined in the configuration.
…adventure-platform-bukkit). Updated the version number to 2.10.7 Configured the relocation of the new dependencies to avoid conflicts with other plugins (I did it because it was giving me problems during testing)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I added compatibility with modern colors since I saw they didn't have it, so I added it.
This will be my first pull request since I plan to add more features to this amazing plugin (of course, if the owners allow me).