Make player execute command as op

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

07L

Member
Feb 23, 2019
43
0
0
23
Is it possible to make a player execute a command as op while in a GUI?
 
Like if she/he has clicked a thing in the gui?
[doublepost=1555175550,1555175517][/doublepost]In a command or event?
 
Is it possible to make a player execute a command as op while in a GUI?
You need TuSKe for this.
Code:
command /test <player>:
    permission: op
    permission message: e
    trigger:
        open virtual chest to player of size 1 named "test"
        format gui slot 0 with dirt named "test" to do
        run console command "sudo %player% /op <player>"
 
You need TuSKe for this.
Code:
command /test <player>:
    permission: op
    permission message: e
    trigger:
        open virtual chest to player of size 1 named "test"
        format gui slot 0 with dirt named "test" to do
        run console command "sudo %player% /op <player>"
I dont understand your code, it says sudo the player with no perms to run the command /op?
 
Status
Not open for further replies.