GUI Slot Change (Section) — skript-gui
Addon: skript-gui · Category: Section · Since: 1.4.0
Syntax
run when [gui] slot[s] %integers/strings% change[s]Description
A section for executing code when a slot changes. Note that for GUIs with a layout, where multiple slots are represented by a single character, the section will execute when any of those slots change.
Examples
create a gui with a virtual chest inventory with layout "xxxxxxxxx", "x-------x", and "xxxxxxxxx"
run when slot 1 changes:
send "You changed slot 1"
run when slot "-" changes:
send "You changed an interior slot"