#Permission locked trigger command

1 messages · Page 1 of 1 (latest)

dull ridge
#

I want to make a trigger that only works if the player is an operator. I want to do it this way so there's a better user experience than using a function (there's a lot of functions in my pack and it might be hard to tell which functions the player should use). Is there a way to detect this?

wind hillBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

🙇 If nobody has answered you by <t:1722306167:t>, feel free to use the Summon Helpers button to ping our helper team.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

fallow solar
#

There isn't a way for data packs to detect Oped players. The way I've done this in the past is to provide a function for them to use that gives them a tag. Then you can just enable the trigger only for players with that tag