Package dev.deepcore.challenge.session
Class SessionParticipantContextService
java.lang.Object
dev.deepcore.challenge.session.SessionParticipantContextService
Provides centralized participant and challenge-state queries for session
services.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionParticipantContextService(ChallengeManager challengeManager, SessionState sessionState, ParticipantsView participantsView, Set<UUID> participants) Creates a session participant context service. -
Method Summary
Modifier and TypeMethodDescriptionList<org.bukkit.entity.Player> List<org.bukkit.entity.Player> List<org.bukkit.entity.Player> booleanisChallengeActive(org.bukkit.entity.Player player) booleanboolean
-
Constructor Details
-
SessionParticipantContextService
public SessionParticipantContextService(ChallengeManager challengeManager, SessionState sessionState, ParticipantsView participantsView, Set<UUID> participants) Creates a session participant context service.- Parameters:
challengeManager- challenge settings and component managersessionState- mutable session phase/state containerparticipantsView- participant roster and counts viewparticipants- active run participants
-
-
Method Details
-
isRunningPhase
public boolean isRunningPhase() -
getOnlineParticipants
-
getActiveParticipants
-
isChallengeActive
public boolean isChallengeActive(org.bukkit.entity.Player player)
-