Vote Definition
Vote Definition
Champs
| Champ | Type | Par défaut | Description |
|---|---|---|---|
options | List<Var<String>> | empty | —PlaceholdersCouleursMultiligne |
endDate | String | — | ISO-8601 formatted end date (e.g. 2025-01-01T00:00:00Z). Leave empty for no end date. |
closedMessage | Var<String> | — | Message shown when someone votes after the end date. Leave empty for no message.PlaceholdersCouleursMultiligne |
blockedMessage | Var<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 |
data | Ref<VoteDataEntry> | — | Artifact storing vote data |
Champs TypeWriter communs (displayName)
| Champ | Type | Par défaut | Description |
|---|---|---|---|
displayName | Var<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.
optionsis the list of choices. Number them from 1 in commands and placeholders, and from 0 in the Vote Action.endDateis an ISO-8601 date in UTC (2026-12-31T23:00:00Z). Empty means no end. Once the date has passed, votes are refused andclosedMessageis sent to the player trying to vote (empty means no message).blockedMessageis sent when a player votes again before the revote cooldown of Vote Config is over, which is always the case when the cooldown is0. Empty means no message.closedMessageandblockedMessageare MiniMessage: write<red>text</red>. Placeholders are resolved first.datais 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.