VitalGlobalCountdownMinigameState
abstract class VitalGlobalCountdownMinigameState(plugin: SpigotPlugin) : VitalCountdownTask.Spigot, VitalGlobalMinigameState
Defines a countdown minigame state within the Vital-Framework. A countdown minigame state can be any state within a running or preparing minigame, which contains a countdown. Every countdown state will by default be a VitalGlobalMinigameState, SpigotListener and VitalCountdownTask.
Listener-events will be scoped to the currently active state. Meaning the event-handlers defined within a single state will only trigger, when that state is active. The current minigame state can be managed by VitalGlobalMinigameService.
@GlobalMinigameState
public class MyCountdownMinigameState extends VitalGlobalCountdownMinigameState {
public MyGlobalCountdownMinigameState(JavaPlugin plugin) {
super(plugin);
}
}Content copied to clipboard
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Lifecycle function; called when this state is disabled by switching to a new state using VitalGlobalMinigameService.setState.
Link copied to clipboard
Lifecycle function; called when this state is enabled via VitalGlobalMinigameService.setState.