HomeJavaModsVoteListener
VoteListener
ModsJava

VoteListener

by DrexHD · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 26.1–26.2 · Fabric⬇ Download for 1.21.11 · Fabric⬇ Download for 1.21.9–1.21.10 · Fabric⬇ Download for 1.21.6–1.21.8 · Fabric⬇ Download for 1.21.5 · Fabric⬇ Download for 1.21–1.21.4 · Fabric⬇ Download for 1.20.5–1.20.6 · Fabric⬇ Download for 1.20.3–1.20.4 · Fabric⬇ Download for 26.1–26.2 · Quilt⬇ Download for 1.21.11 · Quilt⬇ Download for 1.21.9–1.21.10 · Quilt⬇ Download for 1.21.6–1.21.8 · Quilt⬇ Download for 1.21.5 · Quilt⬇ Download for 1.21–1.21.4 · Quilt⬇ Download for 1.20.5–1.20.6 · Quilt⬇ Download for 1.20.3–1.20.4 · Quilt
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

VoteListener

Setup

This mod is powered by NuVotifer-Fabric. Make sure to setup NuVotifier first, by following their Setup Guide.

Config

The config file is located in ./config/votelistener.json.

{
  // Special characters used in commands need to be escaped. Use a website like 
  // https://www.freeformatter.com/json-escape.html to escape your commands
  
  // Commands have special placeholders:
  // ${uuid} - Vote player UUID
  // ${username} - Vote player name
  // ${serviceName} - Voting website name
  // ${address} - IP address of the voter
  // ${timeStamp} - Timestamp of the vote
  
  // A list of commands that get executed when the vote is received
  "commands": [
    "tellraw @a [{\"text\":\"${username}\",\"color\":\"blue\"},{\"text\":\" voted on \",\"color\":\"aqua\"},{\"text\":\"${serviceName}\",\"color\":\"blue\"}]"
  ],
  // A list of commands that gets executed when the player that voted is online or when they join
  // The commands will be executed by the player, as if they were OP
  // You can use @s to target the player (in commands that support entity selectors)
  "onlineCommands": [
    "give @s diamond 1"
  ],
  // A map of vote count milestones to commands
  // The commands work like onlineCommands, but are only executed 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

Permissions

You need to be an operator or have these permissions

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more