How can a non-operator player run this command by clicking on a clickable tellraw text in 1.13+? [duplicate]

Is there a way that a non-op player can click a clickEvent command in the book he is given but not be able to do any other commands?


clickEvent executes as if the player executed it themselves, meaning that for example only OPed players can click a text in a book and execute "cheat" commands with it. If you want to selectively allow other commands to be triggered, use /trigger.