VoteListener
Setup
This mod requires prior installation of NuVotifier-Fabric. Before using VoteListener, be sure to configure NuVotifier by following the official setup guide.
Configuration
The configuration file is located at ./config/votelistener.json.
{
// Special characters in commands need to be escaped. Use online services
// like https://www.freeformatter.com/json-escape.html to escape commands
// Commands support special placeholders:
// ${uuid} - UUID of the player who voted
// ${username} - Name of the player who voted
// ${serviceName} - Name of the voting website
// ${address} - IP address of the voter
// ${timeStamp} - Timestamp of the vote
// List of commands executed when a vote is received
"commands": [
"tellraw @a [{\"text\":\"${username}\",\"color\":\"blue\"},{\"text\":\" voted on \",\"color\":\"aqua\"},{\"text\":\"${serviceName}\",\"color\":\"blue\"}]"
],
// List of commands executed when the player is online or joins the server
// Commands are executed on behalf of the player, as if they were an operator
// You can use @s to target the player (in commands that support entity selectors)
"onlineCommands": [
"give @s diamond 1"
],
// Map of vote count milestones and corresponding commands
// Commands work like onlineCommands, but are executed only once for each milestone
"milestones": {
// After 5 votes the player receives 5 apples
"5": [
"give @s apple 5"
],
"10": [
"give @s golden_apple 2"
]
}
}
Placeholders
votelistener:vote_count- Number of votes accumulated by the player
Permissions
To use commands, you need to be an operator or have the appropriate permissions:
votelistener.reload- Access to the/votelistener reloadcommand