Patbox / TextPlaceholderAPI

Placeholder API for Fabric
GNU Lesser General Public License v3.0
38 stars 17 forks source link

Does not properly inject placeholders into minimessage style tags, like `<click>` or `<hover>` #25

Closed solonovamax closed 1 year ago

solonovamax commented 1 year ago

Placeholders are not properly being injected into minimessage style tags like <click> or <hover>.

Example: Using styled chat and player pronouns, I have the following configs set in for styled chat:

{
  ...
  "defaultStyle": {
    "displayName": "%luckperms:prefix_element highest% <click:suggest_command:'/msg %player:name_unformatted%'><hover:show_text:'%playerpronouns:pronouns%'>${default}</hover></click>",
    "chat": "<click:suggest_command:'/msg %player:name_unformatted%'><hover:show_text:'%playerpronouns:pronouns%'><gray>%player:displayname_visual%<reset> <dark_gray>»</dark_gray><reset> ${message}",
    ...
  },
  ...
}

However, the hover action only displays the following for the hover action: image

And, clicking on the message types the following: (note: the space at the end of /msg)

/msg 

However, changing out <click:suggest_command:'/msg %player:name_unformatted%'> for <click:suggest_command:'/msg testing 123'> inputs the following text:

/msg test 123

It seems that sometimes they're either being replaced with an empty string, or are not being replaced at all. I'm assuming this is a bug with the placeholder api, not minimessage.

solonovamax commented 1 year ago

Possibly related, since they both appeared after updating to 1.19.2: #24

Edit: probably unrelated.