Package dev.deepcore.challenge.config
Class ChallengeConfigView
java.lang.Object
dev.deepcore.challenge.config.ChallengeConfigView
Typed accessors for challenge/session configuration values.
-
Constructor Summary
ConstructorsConstructorDescriptionChallengeConfigView(org.bukkit.plugin.java.JavaPlugin plugin) Creates a typed configuration accessor for the plugin config. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether countdown start requires all online players to be ready.intReturns degrading inventory interval in seconds.intReturns minimum allowed inventory slots for degrading mode.Returns configured limbo world name.Returns configured lobby nether world name.Returns configured lobby overworld name.intReturns prep countdown duration in seconds.doubleReturns active radius for preview-related interactions.booleanReturns whether preview hologram rendering is enabled.booleanReturns whether prep books are removed when countdown starts.
-
Constructor Details
-
ChallengeConfigView
public ChallengeConfigView(org.bukkit.plugin.java.JavaPlugin plugin) Creates a typed configuration accessor for the plugin config.- Parameters:
plugin- plugin whose configuration should be queried
-
-
Method Details
-
countdownRequiresAllReady
public boolean countdownRequiresAllReady()Returns whether countdown start requires all online players to be ready.- Returns:
- true when countdown should wait for all online players
-
removeReadyBookOnCountdownStart
public boolean removeReadyBookOnCountdownStart()Returns whether prep books are removed when countdown starts.- Returns:
- true when prep books should be removed at countdown start
-
prepCountdownSeconds
public int prepCountdownSeconds()Returns prep countdown duration in seconds.- Returns:
- configured prep countdown length in seconds
-
degradingIntervalSeconds
public int degradingIntervalSeconds()Returns degrading inventory interval in seconds.- Returns:
- configured degrading tick interval in seconds
-
degradingMinSlots
public int degradingMinSlots()Returns minimum allowed inventory slots for degrading mode.- Returns:
- lower bound for allowed inventory slots
-
previewEnabled
public boolean previewEnabled()Returns whether preview hologram rendering is enabled.- Returns:
- true when lobby preview holograms are enabled
-
previewActiveRadius
public double previewActiveRadius()Returns active radius for preview-related interactions.- Returns:
- preview interaction radius in blocks
-
limboWorldName
Returns configured limbo world name.- Returns:
- world name used as limbo fallback
-
lobbyOverworldWorldName
Returns configured lobby overworld name.- Returns:
- world name used for lobby overworld
-
lobbyNetherWorldName
Returns configured lobby nether world name.- Returns:
- world name used for lobby nether
-