Permissions in clickable tellraw text
I'm currently making my first datapack, a minigame to play with my friends, and one of the features is a swap ability where the player can choose 2 players to swap. I handled this by creating a menu in chat using tellraw commands and when the executing player clicks on one name, a modified tellraw opens where he clicks on the second name. These names are then stored to execute the swap function itself (with macros).
I tested it and everything worked fine with me, but when my friend tried to do the same thing, it said he doesn't have the permission to use this command (the one that gets executed when he clicks on one of the player names to select). Then i remembered that every player needs permission to use commands from tellraw clickable text or books (at least thats what i think).
Is there any way to solve this without giving every player operator/permission to use specific commands?
(I know the dialouge feature exists now, but i don't know if its any different there and i started this in 1.21.5 and would like to finish it in this version, maybe updating it to 1.21.6 later)
Continue to help post