Solved Triggering a function using tooltip

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Flasser

New Member
Oct 19, 2021
7
0
1
19
I have no idea how to trigger a function using tooltip.
Here is my code

Code:
send "<tooltip:&7Click here to at%nl%&7Confirm the request &c%arg-1%><function:sendDuelRequest(player, arg-1, arg-2, arg-3)>{@prefix}Are you sure you want to send the duel request with a price of &c%arg-2% &7and&c%arg-3% &7rounds angainst the player &c%arg-1%&7?<reset>" to player

If there is any other way to trigger a function by clicking text in the chat, that also has a hover effect, please let me know.

Also, i do not receive any errors when reloading the code.
 
Status
Not open for further replies.