eventsBeginnermc 1.20.x – 1.21.x32 lines
voting rewards (NuVotifier hook)
when a vote comes in via NuVotifier, give the player rewards and announce it server-wide.
required addons — install before reloading
- download NuVotifier ↗Lets your server receive vote notifications from server-listing sites.
Drop each
.jar into your plugins/ folder, then restart your server.voting-rewards.sk32 lines
# Requires a Skript bridge addon for NuVotifier (e.g. Skript-NuVotifier) # so that 'on vote:' fires. NuVotifier alone does not expose a Skript event. on vote: if player is offline: # Player voted from a listing site while not logged in — queue reward. # Key is lower-cased so it matches the on-join drain regardless of # how the voting site capitalises the username. add 1 to {vote.pending.%lower case of event-string%} stop add 1 to {votes.%uuid of player%} add 1 to {votes.total} broadcast "&a%player% &fvoted for the server! &7(%{votes.total}% total votes)" give 1 diamond to player add 100 to {money.%uuid of player%} send "&aThanks for voting! You received &b1 diamond &aand &e$100&a." to player on join: set {_pk} to lower case of name of player if {vote.pending.%{_pk}%} is set: loop {vote.pending.%{_pk}%} times: add 1 to {votes.%uuid of player%} add 1 to {votes.total} give 1 diamond to player add 100 to {money.%uuid of player%} send "&aYou had &e%{vote.pending.%{_pk}%}% &apending vote reward(s)!" to player delete {vote.pending.%{_pk}%} command /votes: trigger: send "&eYour votes: &f%{votes.%uuid of player%} ? 0%" to player send "&eServer total: &f%{votes.total} ? 0%" to player
get it running
voting-rewards.sk · 32 lines · needs NuVotifier- 1
copy or download
grab the .sk file with the buttons up top.
voting-rewards.sk· ready to drop in - 2
drop it in your scripts folder
save it exactly here on your server — no typos, just copy the path:
…/plugins/Skript/scripts/voting-rewards.sk - 3
reload in-game
run this in chat or console — your script goes live instantly:
/sk reload voting-rewards
that's it — your script is live. hop in-game to try it.
/ related templates