Solved My custom GUI and op message not working

  • 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 our Wiki for downloads and any other information about Skript!

Status
Not open for further replies.

Creeperhiss

Member
Feb 16, 2019
2
0
0
26
For some reason, my friend and my server does not tell us when we op someone we just have to assume it worked or check through the deop and tabbing. So I decided that I should try and fix this with a GUI and some messages. Here is the skript I have written but it does not seem to work. (The part that is spaced out is the lines that are not working)

command /ppop [<offline player>]:
aliases: permop, permplayzop
permission: permplayz.op
trigger:
if arg-1 is not set:
message "&aPlease specify a player to op!"
else:
open chest with 3 rows named "&b&lOP %arg 1%" to player
format slot 0 of player with gray stained glass pane named "" to be unstealable
format slot 1 of player with gray stained glass pane named "" to be unstealable
format slot 2 of player with gray stained glass pane named "" to be unstealable
format slot 3 of player with gray stained glass pane named "" to be unstealable
format slot 4 of player with gray stained glass pane named "" to be unstealable
format slot 5 of player with gray stained glass pane named "" to be unstealable
format slot 6 of player with gray stained glass pane named "" to be unstealable
format slot 7 of player with gray stained glass pane named "" to be unstealable
format slot 8 of player with gray stained glass pane named "" to be unstealable
format slot 9 of player with gray stained glass pane named "" to be unstealable
format slot 10 of player with gray stained glass pane named "" to be unstealable
format slot 12 of player with gray stained glass pane named "" to be unstealable
format slot 13 of player with gray stained glass pane named "" to be unstealable
format slot 14 of player with gray stained glass pane named "" to be unstealable
format slot 16 of player with gray stained glass pane named "" to be unstealable
format slot 17 of player with gray stained glass pane named "" to be unstealable
format slot 18 of player with gray stained glass pane named "" to be unstealable
format slot 19 of player with gray stained glass pane named "" to be unstealable
format slot 20 of player with gray stained glass pane named "" to be unstealable
format slot 21 of player with gray stained glass pane named "" to be unstealable
format slot 22 of player with gray stained glass pane named "" to be unstealable
format slot 23 of player with gray stained glass pane named "" to be unstealable
format slot 24 of player with gray stained glass pane named "" to be unstealable
format slot 25 of player with gray stained glass pane named "" to be unstealable
format slot 26 of player with gray stained glass pane named "" to be unstealable

format slot 11 of player with green wool named "&a&lConfirm" to close then run [execute console command "op %arg 1%"]->[message "&aYou have opped %arg 1%!"]->[message "&aYou have been opped by %player%!" to %arg 1%] ######### This line it says that %arg 1% is not a entity but it worked before. (Also I don't know if the %player% works either haven't been able to test.

format slot 15 of player with red wool named "&4&lCancel" to close
 
Use arg-1 instead of %arg-1%. The percentage signs are only needed in strings ("test") or variables ({test}).
EDIT: You should also use TuSKe for your GUI's, it's less buggy and still supported, whereas SkQuery has its bugs and is no longer properly supported
 
Status
Not open for further replies.