InstancePlayerManager
EliteMobs' player lifecycle entry points, kept for existing callers. Admission, leaving, death and spectating run in MagmaCore's match core through MatchInstance.
Functions
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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.