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