Class DegradingInventoryTickerService

java.lang.Object
dev.deepcore.challenge.session.DegradingInventoryTickerService

public final class DegradingInventoryTickerService extends Object
Schedules and applies degrading-inventory slot reductions during active runs.
  • Constructor Details

    • DegradingInventoryTickerService

      public DegradingInventoryTickerService(org.bukkit.plugin.java.JavaPlugin plugin, TaskGroup taskGroup, String degradingTaskKey, SessionState sessionState, ChallengeManager challengeManager, ChallengeConfigView configView, DegradingInventoryService degradingInventoryService, Supplier<List<org.bukkit.entity.Player>> onlineParticipantsSupplier, Consumer<org.bukkit.entity.Player> enforceInventorySlotCap, DeepCoreLogger log)
      Creates a degrading inventory ticker service.
      Parameters:
      plugin - plugin scheduler and lifecycle owner
      taskGroup - grouped task lifecycle manager
      degradingTaskKey - task key for degrading-inventory ticker
      sessionState - mutable session phase/state container
      challengeManager - challenge settings and component manager
      configView - challenge config value accessor
      degradingInventoryService - degrading-inventory state service
      onlineParticipantsSupplier - supplier for currently online participants
      enforceInventorySlotCap - consumer applying inventory slot limits
      log - challenge logger for player/admin messaging
  • Method Details

    • start

      public void start(boolean resetSlots)
      Starts periodic degrading-inventory slot reduction for active runs.
      Parameters:
      resetSlots - true to reset allowed slot count before starting ticker