PlayerLoginEvent

Called when a player has been authenticated, but they have not yet had a player object constructed for them.

Types

Link copied to clipboard
data class Result(val reason: Component) : Record

The result of a login event.

Functions

Link copied to clipboard
abstract fun allow()

Allows this event to occur.

Link copied to clipboard

Allows this event to occur, and sets the result to the given result.

Link copied to clipboard
abstract fun deny()

Denies an event from occurring.

Link copied to clipboard

Denies this event from occur, and sets the result to the given result.

Link copied to clipboard
abstract fun isAllowed(): Boolean

Checks if this event is allowed to happen.

Properties

Link copied to clipboard

The address that the player is logging in from.

Link copied to clipboard
abstract val profile: GameProfile

The game profile of the player logging in.

Link copied to clipboard

The result that is returned by this event.