20 lines
859 B
Mcfunction
20 lines
859 B
Mcfunction
# Remove the scoreboard from the sidebar
|
|
scoreboard objectives setdisplay sidebar
|
|
|
|
# Remove all VoteBooks
|
|
execute as @a run clear @s written_book{certified:votebook}
|
|
|
|
# Report the results
|
|
tellraw @a ["",{"text":"Vote >>","bold":true,"color":"dark_green"},{"text":" AYES: ","bold":true,"color":"dark_green"},{"score":{"name":"AYE","objective":"mt_vote_balance"},"bold":true,"color":"white"},{"text":" "},{"text":" NOES: ","bold":true,"color":"red"},{"score":{"name":"NO","objective":"mt_vote_balance"},"bold":true,"color":"white"}]
|
|
|
|
# play the stop sound
|
|
schedule function tctvote:notes/down_0 1t
|
|
|
|
# Remove the scores and teams
|
|
scoreboard objectives remove mt_vote_balance
|
|
scoreboard objectives remove mt_vote_trigger
|
|
scoreboard objectives remove mt_vote_anon
|
|
scoreboard objectives remove mt_countdown
|
|
bossbar remove votetimer
|
|
team remove green
|
|
team remove red |