GuiRedirectEvent

class GuiRedirectEvent(val player: Player, val from: GuiBuilder, val to: GuiBuilder) : EventCustom

Represents an event triggered when a player is redirected from one GUI to another.

This event is fired when a player is redirected from one GUI to another. It contains information about the player, the GUI they are coming from, and the target GUI they are being redirected to.

Parameters

player

The player who is being redirected.

from

The GuiBuilder representing the GUI the player is coming from.

to

The GuiBuilder representing the GUI the player is being redirected to.

Constructors

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

Types

Link copied to clipboard
object Companion

Properties

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

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.