HomeJavaModsmc-voting-polls
mc-voting-polls
ModsJava

mc-voting-polls

by micegan · on Modrinth

flexible in-game voting and polling system for Bukkit/Spigot/Paper servers. Admins can create command-based polls, while regular players can create…

⬇ Download on Modrinth

Testet only on mc version 1.21.11

flexible in-game voting and polling system for Bukkit/Spigot/Paper servers. Admins can create command-based polls, while regular players can create restricted, silent polls from admin-approved templates. Polls are displayed in a GUI, support repetition, reminders, persistence, and multilingual messages.


Features


Installation

  1. Place the plugin JAR into the plugins/ folder

  2. Start the server once to generate config files

  3. Configure:

    • config.yml
    • lang.yml
    • polls.yml
    • history.yml
  4. Reload configuration with:

    /votepoll reload
    

Core Concepts

Poll

A poll represents a vote with the following properties:

Supported command placeholders:


Templates (customCommands)

Poll templates defined in config.yml. They are reusable and safe predefined commands.

Only templates listed in playerAllowedCommands can be used by non-admin players.


Player-Created Polls

Example:

/votepoll add example_ban --target=RareHuman

Admin-Created Polls


Commands

Player Commands

Open poll GUI:

/votepoll

Preview the poll info:

/preview <id>

Create a poll from an allowed template:

/votepoll add <templateId> [--target=PLAYER]

Vote on a poll:

/vote <pollId> yes
/vote <pollId> no

Toggle reminders:

/votepoll notify on
/votepoll notify off

Set language:

/votelang <languageCode>

Admin Commands (votepoll.admin or OP)

Create a poll:

/votepoll add [id] <duration> <minYes> <minNo> "<display>" <command> [flags]

Supported flags:

Examples:

/votepoll add banVote 300 5 3 "Ban toxic player" ban {target} --target=BadPlayer
/votepoll add 600 4 2 "Restart server?" restart --silent

Other admin commands:

/votepoll cancel <id>
/votepoll reload
/votepoll preview <id>

GUI

Active Votes GUI

Poll Detail GUI


Notifications and Reminders


Persistence


Configuration Example

reminderIntervalSeconds: 1800
defaultRepeatIntervalSeconds: 60

playerAllowedCommands:
  - "example_ban"

customCommands:
  - id: "example_ban"
    display: "Ban example player"
    description: "Ban a player for breaking rules"
    command: "ban {target} Breaking server rules"
    durationSeconds: 300
    minYes: 5
    minNo: 3
    repeat: false
    repeatIntervalSeconds: 0

messages:
  usage_votepoll: "&cUsage: /votepoll add|cancel|list|reload|notify"
  no_permission: "&cYou don't have permission to do that."
  usage_cancel: "&cUsage: /votepoll cancel <id>"
  unknown_subcommand: "&cUnknown subcommand."
  vote_failed: "&cUnable to vote."
  poll_canceled: "&cVote canceled: &6{display} (id: {id})"
  broadcast_new_poll: "&aNew vote created: &6{display} &f(id: {id})"
  vote_passed: "&aVote passed: &6{display}"
  vote_failed: "&cVote failed: &6{display}"
  vote_passed_majority: "&aVote passed (majority): &6{display}"
  vote_failed_majority: "&cVote failed (majority): &6{display}"

Permissions

Permission Description
votepoll.admin Full administrative access
none Required for voting and allowed templates

Important Behavior


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