MatchApi

public interface MatchApi

The plugin's public API adapter. The core fires no Bukkit events of its own; it calls this, and each plugin fires events from its own API package so add-ons never import relocated MagmaCore classes. Cancellable callbacks return false to veto, and a callback that throws counts as a veto.

Functions

Link copied to clipboard
public void destroyed(Match match)
Link copied to clipboard
public void ended(Match match, MatchOutcome outcome)
Link copied to clipboard
public boolean instantiateAttempt(Match match)
Link copied to clipboard
public boolean joinAttempt(Match match, Player player)
Link copied to clipboard
public void joined(Match match, MatchPlayer player)
Link copied to clipboard
public void left(Match match, MatchPlayer player, LeaveReason reason)
Link copied to clipboard
public boolean startAttempt(Match match)
Link copied to clipboard
public void started(Match match)