I have no idea how to trigger a function using tooltip.
Here is my code
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.
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.