GuiOpenEvent

class GuiOpenEvent(val player: Player, val gui: GuiBuilder) : EventCustom

Represents an event triggered when a GUI is opened for a player.

This event is fired when a player opens a GUI. It contains information about the player and the GuiBuilder that represents the opened GUI.

Parameters

player

The player who opened the GUI.

gui

The GuiBuilder that represents the GUI being opened.

Constructors

Link copied to clipboard
constructor(player: Player, gui: GuiBuilder)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val player: Player

Functions

Link copied to clipboard
@NotNull
open fun getEventName(): String
Link copied to clipboard
open override fun getHandlers(): HandlerList

Returns the HandlerList associated with this event.

Link copied to clipboard
fun <T> getMeta(key: String): T?

Retrieves the value of the metadata for a specific key.

Link copied to clipboard

Checks if a metadata key exists.

Link copied to clipboard
Link copied to clipboard

Returns the set of all metadata keys.

Link copied to clipboard

Removes the metadata associated with a specific key.

Link copied to clipboard
fun <T> setMeta(key: String, value: T): EventCustom

Sets a value for the metadata with a specific key.