Hey so i am completely new a using Skript so my project will be very simple to most and probably very common, I am making a simple punish/ban GUI plugin and i have 2 separate Skript files for my tempban and permban GUIs and they both work perfect, what I'm having issues with is what I'm planning on being the "home" GUI that will open and have a choice within this GUI to open temp or perm bans.
In my head i want it so that when you click the item to open the tempban GUI it will just run the command that i would use as if i was typing in chat to open that GUI but when i click the GUI closes fine but does not open the new GUI, This is the code...
Thanks
In my head i want it so that when you click the item to open the tempban GUI it will just run the command that i would use as if i was typing in chat to open that GUI but when i click the GUI closes fine but does not open the new GUI, This is the code...
Thanks
code_language.skript:
command /ban [<offline player>] [<text>]:
permission: ban.use
permission message: &c&lSMP&f&lAdmin &8> &6Only staff have this permission.
trigger:
if arg-1 is not set:
send "&c&lSMP&f&lAdmin &8> &6Command &7<player>"
if arg-1 is set:
open chest with 3 rows named "&c&lSMP&f&lAdmin&7&l: &a&l%arg-1%" to player
wait 1 tick
format slot 0 of player with black glass pane named " " with lore " " to be unstealable
format slot 1 of player with black glass pane named " " with lore " " to be unstealable
format slot 2 of player with black glass pane named " " with lore " " to be unstealable
format slot 3 of player with black glass pane named " " with lore " " to be unstealable
format slot 4 of player with black glass pane named " " with lore " " to be unstealable
format slot 5 of player with black glass pane named " " with lore " " to be unstealable
format slot 6 of player with black glass pane named " " with lore " " to be unstealable
format slot 7 of player with black glass pane named " " with lore " " to be unstealable
format slot 8 of player with black glass pane named " " with lore " " to be unstealable
format slot 9 of player with black glass pane named " " with lore " " to be unstealable
format slot 10 of player with black glass pane named " " with lore " " to be unstealable
format slot 11 of player with yellow glass pane named "&e&lTemp Ban: &7%arg-1%" with lore "" to close then run [execute player command "/skript:tempban %arg-1%"]
format slot 12 of player with black glass pane named " " with lore " " to be unstealable
format slot 13 of player with black glass pane named " " with lore " " to be unstealable
format slot 14 of player with black glass pane named " " with lore " " to be unstealable
format slot 15 of player with red glass pane named "&c&lPerm Ban: &7%arg-1%" with lore " " to be unstealable
format slot 16 of player with black glass pane named " " with lore " " to be unstealable
format slot 17 of player with black glass pane named " " with lore " " to be unstealable
format slot 18 of player with black glass pane named " " with lore " " to be unstealable
format slot 19 of player with black glass pane named " " with lore " " to be unstealable
format slot 20 of player with black glass pane named " " with lore " " to be unstealable
format slot 21 of player with black glass pane named " " with lore " " to be unstealable
format slot 22 of player with black glass pane named " " with lore " " to be unstealable
format slot 23 of player with black glass pane named " " with lore " " to be unstealable
format slot 24 of player with black glass pane named " " with lore " " to be unstealable
format slot 25 of player with black glass pane named " " with lore " " to be unstealable
format slot 26 of player with black glass pane named " " with lore " " to be unstealable