DeathPolicy

public interface DeathPolicy

What happens when an active participant takes lethal damage during an ongoing match.

Functions

Link copied to clipboard
public static DeathPolicy eliminate()
The dead player leaves with DIED.
Link copied to clipboard
public abstract void handle(Match match, MatchPlayer player)
Called after the core cancelled the lethal damage, cleared effects and ran onDeath.
Link copied to clipboard
public abstract int initialLives()
Link copied to clipboard
public static DeathPolicy spectateAndRevive(int lives)
The dead player spectates beside a banner that any player can punch to revive them, while they have lives left.
public static DeathPolicy spectateAndRevive(int lives, Function<MatchPlayer, ReviveMarker> markers)