PlayerStatus

@Serializable
data class PlayerStatus(var latestDeathPos: Location?, var isDead: Boolean = false, var isToRevive: Boolean = false, var isTeleportToDeathPos: Boolean = true, var isRestoreInventory: Boolean = true, var banMessage: Component = Component.text(""), ghostState: PlayerManager.GhostState = GhostState(false, 0))

This data class represents the status values, tracked by this plugin.

It can be used externally to get information about a player, that is the subject of a io.github.eingruenesbeb.yolo.events.YoloPlayerEvent.

Constructors

Link copied to clipboard
constructor(latestDeathPos: Location?, isDead: Boolean = false, isToRevive: Boolean = false, isTeleportToDeathPos: Boolean = true, isRestoreInventory: Boolean = true, banMessage: Component = Component.text(""), ghostState: PlayerManager.GhostState = GhostState(false, 0))

Properties

Link copied to clipboard
var banMessage: Component

The ban message, that will be shown to the player upon being death-banned.

Link copied to clipboard

Whether the player is considered to be dead by the plugin.

Link copied to clipboard

Whether the inventory should be restored upon revival.

Link copied to clipboard

Whether the player should be teleported to the latestDeathPos upon their revival.

Link copied to clipboard

Whether the player should be revived by the plugin.

Link copied to clipboard
var latestDeathPos: Location?

The location of the last death.