Vote Definition
Vote Definition
字段
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
options | List<Var<String>> | empty | —占位符颜色多行 |
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.占位符颜色多行 |
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.占位符颜色多行 |
data | Ref<VoteDataEntry> | — | Artifact storing vote data |
TypeWriter 通用字段(displayName)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
displayName | Var<String> | — | —占位符颜色多行 |
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.