Runs the one time a player's own votes get to that number: on vote milestone 50:. It needs a number. player is the voter if they are on the server; {_voter}, {_service}, {_votes} and {_streak} are as in on vote:
on vote milestone 100:
execute console command "lp user %{_voter}% parent add supporter"
structureon vote streak <n>:HyperVotesexample
Runs the one time a player's streak gets to that many days in a row: on vote streak 7:. The values are those of on vote:
on vote streak 7:
broadcast "&d%{_voter}% &7has voted seven days in a row!"
effectset votes of <who> to <n>HyperVotesexample
Make a player's votes that number, for carrying votes over from another plugin or putting a mistake right. Their streak stays as it is, and no event runs
set votes of arg.1 to arg.2
expressionvotes this month of <who>HyperVotesexample
How many times somebody has voted in this calendar month; 0 if not at all
set {_mine} to votes this month of player
expressiontop voters this monthHyperVotesexample
The names of those with the most votes this month, best first, up to 100
for each {_name} in top voters this month:
add 1 to {_place}
if {_place} <= 5:
send "&e#%{_place}% &f%{_name}% &7- %votes this month of {_name}%"
Guide and examples
on vote milestone 50:
broadcast "&d%{_voter}% &7has voted &f50 &7times. Thank you!"
give 1 diamond block to player
on vote milestone 100:
execute console command "lp user %{_voter}% parent add supporter"
on vote streak 7:
broadcast "&d%{_voter}% &7has voted seven days in a row!"
command /setvotes <target> <votes:number>:
permission: "votes.admin"
trigger:
set votes of arg.1 to arg.2
send "&a%arg.1% now has %arg.2% votes."
command /votemonth:
trigger:
set {_mine} to votes this month of player
send "&7You have voted &f%{_mine}% &7times this month."
set {_place} to 0
for each {_name} in top voters this month:
add 1 to {_place}
if {_place} <= 5:
send "&e#%{_place}% &f%{_name}% &7- %votes this month of {_name}%"
Syntax
Effect
on vote milestone <n>:
Runs the one time a player's own votes get to that number: on vote milestone 50:. It needs a number. player is the voter if they are on the server; {_voter}, {_service}, {_votes} and {_streak} are as in on vote:
on vote streak <n>:
Runs the one time a player's streak gets to that many days in a row: on vote streak 7:. The values are those of on vote:
set votes of <who> to <n>
Make a player's votes that number, for carrying votes over from another plugin or putting a mistake right. Their streak stays as it is, and no event runs
votes this month of <who>
How many times somebody has voted in this calendar month; 0 if not at all
top voters this month
The names of those with the most votes this month, best first, up to 100
A milestone is reached when the vote comes in, also for a player who is not on the server then; there is no player in the block in that case, so reward them by name, or in on vote: when they are back.
Months are counted from this version on: votes that came in with an older version count for the total and the streak, but not for the month they were in.