RockinChaos / ItemJoin

Get custom items on join.
https://www.craftationgaming.com/
GNU Lesser General Public License v3.0
138 stars 36 forks source link

links dont work in the chat #539

Closed viceversa03 closed 1 year ago

viceversa03 commented 1 year ago

Server Version

Purpur 1.19.3

Resource Version

ItemJoin v6.0.1-RELEASE-b892

Dump Information

https://pastebin.com/V1DLNzqQ

Describe The Bug

After using the item that displays the link to the chat, I click on this link and it does not work

Expected Behavior

Links should open

Steps To Reproduce

  1. Use an item with the id "contact"
  2. Click on the link in the chat
  3. See the eror

Additional Info

No response

Checklist

RockinChaos commented 1 year ago

I apologize for the late response.

So this is a user configuration issue, not a bug. Messages as per the context are just messages, not links. If you want to utilize what is called JSON events (interactables) you must specify them as such similar to how you create a JSON book using the syntax specified in the wiki.

Here is an example I converted from your contract item;

    - 'message: <text:&7[&a✔&7] &5TikTok &f- &x&b&1&f&d&f&fwww.tiktok.com/@dreamland_ua><open_url:https://www.tiktok.com/@dreamland_ua>'

I specify the text then I specify the url to make the text clickable. There are many ways and combinations to specify certain interactions so I suggest you view the wiki if you want to know more; https://github.com/RockinChaos/ItemJoin/wiki/Creating-Items#creating-a-custom-book

Even though it talks about creating a book, the JSON events/interactables apply for the message cmdlet for items.

Hopefully, that makes sense, let me know!~

EDIT: Marking this as answered due to inactivity, please reopen this issue if you still need additional help.