Skip to content

Add support for minimessages and other formats (like hex colors)#463

Open
Dianelito wants to merge 5 commits intoespidev:masterfrom
Dianelito:master
Open

Add support for minimessages and other formats (like hex colors)#463
Dianelito wants to merge 5 commits intoespidev:masterfrom
Dianelito:master

Conversation

@Dianelito
Copy link

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).

…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments