HyperScript
Docs

← All of the Docs HyperVotes

Counting votes HyperVotes

expressionvotes of <who>HyperVotes

How often they have voted; works for someone offline

reset votes of arg.1
expressionvotes today of <who>HyperVotes

How many times they have voted today, by the server's calendar; 0 for somebody who has not yet

set {_today} to votes today of player
expressionvote streak of <who>HyperVotes

How many days in a row they have voted. A day without a vote brings it back to 0

send "&7You have voted &f%votes of player% &7times, &f%vote streak of player% &7days in a row."
expressionlast vote of <who>HyperVotes

When they last voted, as a date; unset if never

send "&7Your last vote was " + last vote of player formatted as "d MMMM, HH:mm"
expressiontotal votesHyperVotes

Every vote the server has counted

send "&6Top voters &7(%total votes% votes in all)"
expressiontop votersHyperVotes

A list of names, the most votes first, at most 100

for each {_name} in top voters:
    add 1 to {_place}
    if {_place} > 10:
        stop
    send "&e%{_place}%. &f%{_name}% &7- %votes of {_name}%"
expressionvotes until partyHyperVotes

How many votes are missing until the next party; 0 when parties are off

send "&d%votes until party% &7more votes until the next party."
Guide and examples
command /votes:
    players only: true
    trigger:
        send "&7You have voted &f%votes of player% &7times, &f%vote streak of player% &7days in a row."
        if last vote of player is set:
            send "&7Your last vote was " + last vote of player formatted as "d MMMM, HH:mm"
        if votes until party > 0:
            send "&d%votes until party% &7more votes until the next party."

command /votetop:
    trigger:
        send "&6Top voters &7(%total votes% votes in all)"
        set {_place} to 0
        for each {_name} in top voters:
            add 1 to {_place}
            if {_place} > 10:
                stop
            send "&e%{_place}%. &f%{_name}% &7- %votes of {_name}%"
SyntaxResult
votes of <who>How often they have voted; works for someone offline
votes today of <who>How many times they have voted today, by the server's calendar; 0 for somebody who has not yet
vote streak of <who>How many days in a row they have voted. A day without a vote brings it back to 0
last vote of <who>When they last voted, as a date; unset if never
total votesEvery vote the server has counted
top votersA list of names, the most votes first, at most 100
votes until partyHow many votes are missing until the next party; 0 when parties are off