VoteForCommand
PluginGPL-3.0-or-later

VoteForCommand

Plugin that allows players to vote on executing commands on the server. Admins can create configuration files to specify exactly which commands they want to make available.

33
Downloads
1
Followers
3 months ago
Updated
📦
2
Versions

📖About VoteForCommand

About

VoteForCommand allows players to vote for server commands execution.

This easy-to-use plugin can liven up the atmosphere on your server, as it allows you to add commands of any complexity.

img

Configuration

You can fully customize voting options in the config:

votingCommands:
  freeDiamond:
    name: "FREE DIAMOND!!" # Display name in menu and chat
    description: "Give a random player diamond!" # Description shown to players
    material: "DIAMOND" # Item used as icon in menu
    commands: # Commands executed if vote passes
      - "execute as @r run give @s minecraft:diamond 1"
    cooldown: 3600 # Cooldown in seconds before this vote can be started again
    percentToWin: 50.0 # Required % of FOR votes to pass
    minimumOnline: 5 # Minimum players online to start vote
  heal:
    name: "Sacred blessing"
    description: "Sacred blessing of the goddess of health. All players will receive regeneration."
    material: "GOLDEN_APPLE"
    commands:
      - "execute as @a at @s run particle minecraft:heart ~ ~1 ~ 0.5 1 0.5 0.1 10"
      - "effect give @a minecraft:glowing 5 0 true"
      - "effect give @a minecraft:regeneration 120 1 true"
    cooldown: 3600
    percentToWin: 70.0
    minimumOnline: 10

Permissions and commands

commands:
  vote:
    description: "Open vote menu."
    usage: "/vote"
    permission: "voteforcommand.vote.use"
  reload:
    description: "Reload plugin config."
    usage: "/reload"
    permission: "voteforcommand.reload.use"
    aliases:
      - votereload
permissions:
  voteforcommand.vote.use:
    description: "Allow player to use /vote command (open menu)."
    default: true
  voteforcommand.vote.participant:
    description: "Allow player to click [FOR] and [AGAINST] buttons in chat."
    default: true
  voteforcommand.reload.use:
    description: "Allow admin to use /reload command for plugin."