Vote System

Implement voting systems for server decisions, events, or player choices. Track votes and execute results automatically.

Simple Yes/No Vote

Create a basic voting system:

/cmd add vote_yes scoreboard players add #vote_yes vote_count 1 && tellraw @s {"text":"Voted YES!","color":"green"}
/cmd add vote_no scoreboard players add #vote_no vote_count 1 && tellraw @s {"text":"Voted NO!","color":"red"}

Vote Results

Check and announce vote results:

/cmd add vote_results tellraw @a [{"text":"Vote Results: YES ","color":"green"},{"score":{"name":"#vote_yes","objective":"vote_count"},"color":"green"},{"text":" | NO ","color":"red"},{"score":{"name":"#vote_no","objective":"vote_count"},"color":"red"}]

Custom Syntax Voting

// In syntax.json
{
  "vote": {
    "pattern": "/vote 

Timed Votes

Automatic vote ending after time:

/cmd add start_vote scoreboard players set #vote_timer vote_time 1200 && tellraw @a {"text":"Voting started! 2 minutes remaining.","color":"gold"}
/cmd add vote_tick execute if score #vote_timer vote_time matches 1.. run scoreboard players remove #vote_timer vote_time 1 && execute if score #vote_timer vote_time matches 0 run function:end_vote