Vote Listener 1.0.1

Intuitive voting rewards.

  1. Empire92
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    Contributors:
    log1x
    Requires: Votifier

    Overview:
    This plugin will track player votes. Players can be rewarded for voting, or punished for not. Giving worldedit permission whilst a player has 3 votes in the past 24 hours, and removing it when they don't is an example of a reward/punish vote action.

    Any command can be executed, and most player commands will work with offline players.

    Permissions:
    votelistener.reload
    votelistener.purge
    votelistener.info
    votelistener.top
    votelistener.rank
    votelistener.fakevote

    Commands:
    /votes <reload|purge|info|top|rank|fake>

    Example configuration:
    Code (YAML):
    version: 1.0.1
    ###################################################
    # FUNCTIONS (reward or punish):                   #
    # cmd <command..>                                 #
    # msg <player> <message..>                        #
    # sudo <player> <command..>                       #
    # broadcast <message..>                           #
    # delperm <player> [world] <perm>                 #
    # setperm <player> [world] <perm>                 #
    # setgroup <player> [world] <group>               #
    # addgroup <player> [world] <group>               #
    # delgroup <player> [world] <group>               #
    # hasperm [world] <perm>                          #
    # pay <player> <amount>                           #
    # fine <player> <amount>                          #
    # give <player> [<amount>x]<id|name>[:<data>]     #
    # statue <player>                                 #
    # equals <key> <value>                            #
    #                                                 #
    # NOTE: Most of these work with offline players   #
    ###################################################
    # PLACEHOLDERS:                                   #
    # {player}                                        #
    # {votes[:<timediff>]}                            #
    # {world}                                         #
    # {hasperm:<perm>}                                #
    # {hasgroup:<group>}                              #
    ###################################################
    # TIME:                                           #
    # s = seconds                                     #
    # m = minutes                                     #
    # h = hours                                       #
    # d = days                                        #
    # w = weeks                                       #
    # y = years                                       #
    # EXAMPLE: 10m5s                                  #
    ###################################################
    # VOTE REQUIREMENT:                               #
    # <#> = Number of required votes                  #
    # top,<#> = Required min rank                     #
    # top,<#>,<#> = Required rank range               #
    # EXAMPLE: top,3,5                                #
    ###################################################
    options
    :
     # Place a sign with [voters] on the first line
      sign-period
    : 1w
      # If you want to place statues for top voters, you can define the statue locations here (requires SkinStatueBuilder)
      statue-locations
    :
     # <world>,<x>,<y>,<z>,<yaw>
      - world,25,60,0,0.5

    # This is a basic reward that will send a message when a player votes, there are no additional requirements
    reward1
    :
      reward
    :
     - msg {player} &aThanks for voting!

    # This will give a player permission for worldedit if they have voted 3 times in the past 24 hours
    reward2
    :
      votes
    : 3
      # They need the votes within this time frame
      frame
    : 1d
      # They need this permission for this to trigger
      perm
    : group.member
      # Functions executed if they meet the requirements
      reward
    :
     # If they already have the perm, don't execute the rest of the functions
      - equals {hasperm:worldedit.*} false
      - setperm {player} worldedit.*
      - msg {player} &7Thanks for &avoting&7! You have been granted &aWorldEdit&7 for &a24 hours&7. &4<3
      # The punishment section will remove the permission when they no longer meet the requirements
      punish
    :
     # If they don't have the perm, don't execute the rest of the functions
      - equals {hasperm:worldedit.*} true
      - delperm {player} worldedit.*
      - msg {player} &7WorldEdit access has expired. Please type &a/vote&7 to revote.
      # When to potentially apply this (it defaults to false, true, false)
      check
    :
        login
    : true
        vote
    : true
        interval
    : 10m
    Jonah_Ferguson and candr like this.

Recent Reviews

  1. NukeMC
    NukeMC
    4/5,
    Version: 1.0.1
    Is the author still here i would like to ask something! when he responds and helps me with that something ill put it to 5stars!
  2. candr
    candr
    4/5,
    Version: 1.0.1
    I am unsure what commands I can use in the config. The present ones at the top of the config or my own commands? If I can use my own commands, I'm giving 5 stars.
    1. Empire92
      Author's Response
      Well you have to use the functions at the top, but there's a command function (if you want to use your own)

      cmd <command>
  3. Voxytech
    Voxytech
    4/5,
    Version: 1.0.1
    It's a good listener for Votifier. I installed and used it because superbvote & GAListener doesn't work properly. This one is simple and work very good. I recommanded it :)