1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Make a player perform an command with an permission

Discussion in 'Skript' started by LOSTJOST, May 10, 2021.

Thread Status:
Not open for further replies.
  1. LOSTJOST

    LOSTJOST Member

    Joined:
    May 10, 2021
    Messages:
    4
    Likes Received:
    0
    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?
     
  2. Best Answer:
    Post #2 by swaith, May 10, 2021
  3. swaith

    swaith Member

    Joined:
    May 4, 2021
    Messages:
    11
    Likes Received:
    1
    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 Like x 1
  4. LOSTJOST

    LOSTJOST Member

    Joined:
    May 10, 2021
    Messages:
    4
    Likes Received:
    0
    Thank u <3
     
  5. Daniel Greer

    Daniel Greer Member

    Joined:
    Dec 11, 2020
    Messages:
    18
    Likes Received:
    1
    Or if you wouldn't want to use Console to execute a command, you can do:

    Code (Text):
    1. make player run command "/mv tp jumpandrun" as op
     
    • Like Like x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...