GuiClickEvent

constructor(player: Player, slot: Int, event: InventoryClickEvent, button: GuiButton)

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.