Gui Click Event
class GuiClickEvent(val player: Player, val slot: Int, val event: InventoryClickEvent, val button: GuiButton) : EventCustom
Represents an event triggered when a button within a GUI is clicked by a player.
This event is fired when a player clicks a button in the GUI. It contains information about the player who clicked, the slot where the button was located, the original InventoryClickEvent, and the GuiButton that was clicked.
Parameters
player
The player who clicked the button.
slot
The slot in the inventory where the button is located.
event
The original InventoryClickEvent that triggered this event.
button
The GuiButton that was clicked by the player.