Skip to content

Conversation

@Tanguygab
Copy link
Collaborator

@Tanguygab Tanguygab commented Jul 20, 2025

Support for MiniMessage in menu titles, item display names & lores.
Also made it so legacy colors would work alongside MM colors without issues.
Legacy colors will still work, but MM colors can't be used in the same strings.
Also copy-pasted ChatChat's papi:PLACEHOLDER TagResolver code to support PAPI placeholder returning legacy colors.

Tanguygab and others added 7 commits June 27, 2025 15:12
… menus that have the option set to true (false by default) and only for Paper servers. Added a new <arg:ARGUMENT> tag for MiniMessages that replaces the old <ARGUMENT> pattern. MiniMessages works in menu title, item display name and item lore. <papi> and <arg> tags work for menu title, item display name, item lore but also for [minimessage] and [minibroadcast] action. For the actions, it works even if the menu does not have mini messages enabled.
@BlitzOffline
Copy link
Member

I have made a few changes.

  • New per menu option use_mini_messages. Defaults to false. If enabled, menu titles, item names and item lore will use MiniMessages for formatting. Option only works on Paper servers.
  • New <arg:ARGUMENT> argument for MiniMessages. It replaces the old . (may need to find a better name than arg). It also has an optional parameter of closing or inserting, the same way tag has. It defaults to closing.
  • I made it so tag resolvers for PlaceholderAPI () and Arguments () work with menu title, item name and item lore (only when use_mini_messages is enabled) but always work for [minimessage] and [minibroadcast].
  • %% placeholders and old arguments are no longer parsed for menu title, item name and item lore if use_mini_messages is enabled.
  • %% placeholders and old arguments will never parse for [minimessage] and [minibroadcast] actions

@BlitzOffline
Copy link
Member

I had a discussion with @Tanguygab and here is the update:

  • allow %% placeholders and not just the <papi> tag.
  • check if argument tags work inside placeholders and vice versa

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.

2 participants