User

interface User : BaseUser

A user. This is a player that can be offline, and mostly exists for that purpose.

Functions

Link copied to clipboard
abstract fun asPlayer(): Player?

Gets the player associated with this user, or null if they are not currently available, usually meaning they are offline.

Link copied to clipboard
abstract fun isOnline(): Boolean

If this user is online or not.

Properties

Link copied to clipboard
abstract val firstJoined: Instant

The time that this user first joined the server.

Link copied to clipboard
@get:JvmName(name = "hasJoinedBefore")
abstract val hasJoinedBefore: Boolean

If this user has joined this server before.

Link copied to clipboard
abstract val lastJoined: Instant

The latest time when this user last joined the server.

Link copied to clipboard
abstract val name: String

The name of this user.

Link copied to clipboard
abstract val profile: GameProfile

The cached game profile associated with this user.

Link copied to clipboard
abstract val uuid: UUID

The UUID of this user.