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

Make player execute command as op

Discussion in 'Skript' started by 07L, Apr 13, 2019.

  1. 07L

    07L Active Member

    Joined:
    Feb 23, 2019
    Messages:
    35
    Likes Received:
    0
    Is it possible to make a player execute a command as op while in a GUI?
     
  2. M

    Marsbar Member

    Joined:
    Mar 31, 2019
    Messages:
    24
    Likes Received:
    0
    Like if she/he has clicked a thing in the gui?
    --- Double Post Merged, Apr 13, 2019, Original Post Date: Apr 13, 2019 ---
    In a command or event?
     
  3. 07L

    07L Active Member

    Joined:
    Feb 23, 2019
    Messages:
    35
    Likes Received:
    0
    Yeah
     
  4. [

    Joined:
    Apr 6, 2019
    Messages:
    7
    Likes Received:
    0
    You need TuSKe for this.
    Code (Text):
    1. command /test <player>:
    2.     permission: op
    3.     permission message: e
    4.     trigger:
    5.         open virtual chest to player of size 1 named "test"
    6.         format gui slot 0 with dirt named "test" to do
    7.         run console command "sudo %player% /op <player>"
     
  5. 07L

    07L Active Member

    Joined:
    Feb 23, 2019
    Messages:
    35
    Likes Received:
    0
    I dont understand your code, it says sudo the player with no perms to run the command /op?
     
  6. [

    Joined:
    Apr 6, 2019
    Messages:
    7
    Likes Received:
    0
    %player% refers to the player running the command. <player> defines the first argument.
     
  7. ELROMPEDIENTES

    Joined:
    Feb 24, 2017
    Messages:
    188
    Likes Received:
    7
    %arg 1% refers to the first argument
     
Loading...