Gui Click Event
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.