Package dev.deepcore.challenge.session
Class RunStartGuardService
java.lang.Object
dev.deepcore.challenge.session.RunStartGuardService
Encapsulates pre-run guard checks and related player messaging.
-
Constructor Summary
ConstructorsConstructorDescriptionRunStartGuardService(Supplier<WorldResetManager> worldResetManagerSupplier, DeepCoreLogger log) Creates a run start guard service. -
Method Summary
Modifier and TypeMethodDescriptionvoidAnnounces to online players that run start is blocked by disco preview mode.booleanReturns whether the current disco preview should block run start.
-
Constructor Details
-
RunStartGuardService
public RunStartGuardService(Supplier<WorldResetManager> worldResetManagerSupplier, DeepCoreLogger log) Creates a run start guard service.- Parameters:
worldResetManagerSupplier- supplier used to retrieve the active world reset managerlog- logger used for player-facing warning delivery
-
-
Method Details
-
isDiscoPreviewBlockingChallengeStart
public boolean isDiscoPreviewBlockingChallengeStart()Returns whether the current disco preview should block run start.- Returns:
- true when disco preview mode is active and run start should be blocked
-
announceDiscoPreviewStartBlocked
public void announceDiscoPreviewStartBlocked()Announces to online players that run start is blocked by disco preview mode.
-