Aller au contenu principal

Vote Definition

Vote Definition

Champs

ChampTypePar défautDescription
optionsList<Var<String>>empty—PlaceholdersCouleursMultiligne
endDateString—ISO-8601 formatted end date (e.g. 2025-01-01T00:00:00Z). Leave empty for no end date.
closedMessageVar<String>—Message shown when someone votes after the end date. Leave empty for no message.PlaceholdersCouleursMultiligne
blockedMessageVar<String><red>You cannot vote again yet.</red>Message shown when a player votes again before the cooldown of the Vote System Configuration is over (always, when the cooldown is 0). Leave empty for no message.PlaceholdersCouleursMultiligne
dataRef<VoteDataEntry>—Artifact storing vote data
Champs TypeWriter communs (displayName)
ChampTypePar défautDescription
displayNameVar<String>——PlaceholdersCouleursMultiligne

How to use it​

One definition is one poll. Its entry id is used in placeholders and as the storage key of its votes, so keep it stable.

  • options is the list of choices. Number them from 1 in commands and placeholders, and from 0 in the Vote Action.
  • endDate is an ISO-8601 date in UTC (2026-12-31T23:00:00Z). Empty means no end. Once the date has passed, votes are refused and closedMessage is sent to the player trying to vote (empty means no message).
  • blockedMessage is sent when a player votes again before the revote cooldown of Vote Config is over, which is always the case when the cooldown is 0. Empty means no message.
  • closedMessage and blockedMessage are MiniMessage: write <red>text</red>. Placeholders are resolved first.
  • data is the Vote Data artifact that stores the votes. Several definitions can share one artifact; each keeps its own data. Without it, no vote can be recorded.