InstancePlayerManager

Constructors

Link copied to clipboard
public void InstancePlayerManager()

Functions

Link copied to clipboard
public static boolean addNewPlayer(Player player, MatchInstance matchInstance)
Link copied to clipboard
public static boolean addNewPlayers(Collection<Player> requestedPlayers, MatchInstance matchInstance)
Atomically admits a set of players.
public static boolean addNewPlayers(Collection<Player> requestedPlayers, MatchInstance matchInstance, BooleanSupplier authorization)
Atomically admits players while an external authorization remains valid.
Link copied to clipboard
public static void addSpectator(MatchInstance matchInstance, Player player, boolean wasPlayer)
Link copied to clipboard
public static void playerDeath(MatchInstance matchInstance, Player player)
Link copied to clipboard
public static void removeAnyKind(MatchInstance matchInstance, Player player)
Link copied to clipboard
public static void removePlayer(Player player, MatchInstance matchInstance)
Link copied to clipboard
public static void removeSpectator(MatchInstance matchInstance, Player player)
Link copied to clipboard
public static void revivePlayer(MatchInstance matchInstance, Player player, InstanceDeathLocation deathLocation)
Link copied to clipboard
public static void rollbackAdmissions(Collection<Player> admittedPlayers, MatchInstance matchInstance)
Clears a completed admission and balances its public join notifications without teleporting.