Hey guys, im quiet new to skript and i have a bug which me and a friend of mine neither can't solve.
If i open the gui and want to click on one of the slots to execute another command it wont execute.
If i open the gui and want to click on one of the slots to execute another command it wont execute.
code_language.skript:
command /server:
permission: Raz3rniels.server
trigger:
open chest with 5 rows named "&8[&3DragonKingdom&8]&f-&8[&3Server info&8]" to player
wait 1 tick
format slot 10 of player with armor stand named "&8[&3Staff Leden&8]" with lore "&bKlik hier voor de staff lijst!" to close then run "stafflijst"
format slot 14 of player with brick named "&8[&3Server Informatie&8]" with lore "&bKlik hier voor wat informatie over de server!" to close then run "serverinformatie"
format slot 16 of player with blaze rod named "&8[&3Ranks&8]" with lore "&bKlik hier voor de ranks van de server!" to close then run "ranks"
on inventory click:
if inventory name of player's current inventory is "&8[&3DragonKingdom&8]&f-&8[&3Server info&8]":
if clicked slot is 10:
close inventory of player
execute player command "/stafflijst"
if clicked slot is 14:
close inventory of player
execute player command "/serverinformatie"
if clicked slot is 16:
close inventory of player
execute player command "/ranks"