Solved Make a player perform an command with an permission

  • 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.

LOSTJOST

Member
May 10, 2021
4
0
1
23
Hey,
i am trying to make an gui. But now i would like that if a player click on an item the command get executet with an permssion (or as op)


if index of event-slot = 13:
cancel event
make player execute command "/mv tp jumpandrun" [that command should run with an permission()]

Can somebody help me with this plz?
 
If I understand your question correctly, you would give the player permission to execute the command to bring up the GUI but on click it is the console executing the command,

so I believe it should read
  1. make console execute command "/mv tp %player% jumpandrun"
Though check %player% because I can't swear that is accurate.
 
  • Like
Reactions: LOSTJOST
Or if you wouldn't want to use Console to execute a command, you can do:

Code:
make player run command "/mv tp jumpandrun" as op
 
  • Like
Reactions: swaith
Status
Not open for further replies.