PreYoloPlayerReviveEvent

This event is emitted when a player is about to be revived. It is a synchronous variant of PreYoloPlayerReviveEventAsync, that can change the outcome of the process by using changeOutcome.

It implements YoloPlayerEvent, meaning, that it provides relevant information about the player and access to the corresponding org.bukkit.OfflinePlayer and org.bukkit.entity.Player.

See also

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun callEvent(): Boolean
Link copied to clipboard
fun changeOutcome(isToRevive: Boolean, isTeleportToDeathPos: Boolean, isRestoreInventory: Boolean, by: Plugin, isSilent: Boolean = false, reason: String? = null)

Changes the outcome of the process depending on the new parameters given.

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

Properties

Link copied to clipboard
open val offlinePlayer: OfflinePlayer

The corresponding OfflinePlayer.

Link copied to clipboard

The originally intended outcome of the revive-attempt

Link copied to clipboard
open val player: Player?

The corresponding Player, if they are online. Otherwise, this is null.

Link copied to clipboard
Link copied to clipboard

This is the current targeted outcome.
It has been altered by other plugins.

Link copied to clipboard

The information regarding this player including their current status