SVL

SimpleVoteListener

Source: https://dev.bukkit.org/projects/simple-vote-listener

Description

SimpleVoteListener was designed to be as lightweight as possible and make endless possibilities. SimpleVoteListener can perform commands, broadcast messages, and do everything you could possibly need it to do.


PLANNEDย Features

  • Vaultย Economy support.
  • Bungeefierย andย Spigotย support.
  • Public broadcasts.
  • Private messaging to voting players.
  • Offline voting.
  • Unknown player blocking. (Vote will not go through unless player has joined server previously)
  • Configurable
  • Permissions can be given and taken upon vote.
  • Items can be given to player.
  • Commands can be run through console upon voting.
  • Service-specific awards.
  • Permission-specific awards.
  • Vote counting.
  • Vote count awards.
  • Timed commands.
  • Timed commands continue after restarting server.
  • Config variables.
  • Color codes in config.

Installation

Requiresย Votifier

  1. Drop SimpleVoteListener.jar into your plugins directory.
  2. Reload or restart your server.
  3. Done!

note: You don’t need to do anything special to get SimpleVoteListener to connect to Votifier


Plannedย Commands

/svl reloadย – Reloads configuration.

/svl testย – Tests vote process.

/svl debugย – Toggles debug mode for development.


Usage

Sample usage:

# Changing the version will ruin your config.
version: 1.0

debug: false
vault: true
time-format: 'HH:mm:ss'

public-broadcast: '&e%player% voted from %service%!'
private-message: '&aThanks, &c%player%&a, for voting!'

player-awards:
  money: 100
  permissions:
    - 'example.permission'
    - 'example.permission.two'
  items:
    - 'ITEM{DATA_VALUE}:AMOUNT'
    - 'WOOL{6}:64'
  commands:
    - 'warp %player% vote'
# Note that specific awards do not include the awards above.
specific:
  # Awards given to players that vote from a specific voting service.
  service:
    PlanetMinecraft:
      money: 100
      permissions:
        - 'example.permission'
      items:
        - 'DIAMOND:1'
      commands:
        - 'warp %name% pmc'
  # Awards given to players that have a specific permission.
  # Replace dots with dashes in permissions.
  permissions:
    example-permission:
      money: 100
      permissions:
        - 'example.permission'
      items:
        - 'GOLD_BAR:1'
      commands:
        - 'warp %name% china'
  # Awards given to players that have voted a specific amount of times.
  votes:
    100:
      money: 100
      permissions:
        - 'example.permission'
      items:
        - 'DIAMOND:10'
      commands:
        - 'say %name% has voted %votes% times!'
  • %name%ย – Username of the player. Not the nickname.
  • %ip%ย – IP Address of the player who voted
  • %time%ย – Not sure what format of time, Votifier handles the format.
  • %service%ย – Service used when voting, eg. “PlanetMinecraft.com”
  • %votes%ย – Amount of times player has voted.
  • %connection%ย – Returns “online” or “offline” accordingly.

Troubleshooting

Nothing is Happening on Vote

  • Check to make sure the port you are using in your Votifier config is not already in use.
  • Read the Troubleshooting section on theย Votifierย page.

Plugin not generating files

  • Make sure your plugins folder isn’t restricted. Usually this is not the case if other plugins can write files to it.
  • Try usingย Java 7ย instead of Java 6.
  • Check that you’re using the correct version of CraftBukkit corresponding to the version of SVL.

Config not working

  • Parse your configย by pasting it. If there is an error it will tell you the lineย andย column number!
  • Make sure you are using correct variables (listed above)

Commands not being run

  • Check to make sure you have a plugin that can run the commands you are trying to run!
  • Some plugins don’t let certain commands run from the console, and there is nothing that can be done except look for a different plugin!

Connecting to Votifier but not SVL

  • Make sure SVL started up without errors and is enabled by typingย /plย (it should be green in the list).
  • Make sure config works by checking advanced setups section of Configuration Page

Still not working?/Question not answered?

Leave a comment with the following:

  • SVL version
  • Votifier version
  • CraftBukkit version
  • Errors in console (if one is given)
  • Config file posted on either pastie.org or pastebin.com
  • Actual problem typed and explained to best of detail

Leave a Reply

Your email address will not be published. Required fields are marked *

14 + sixteen =

Skip to toolbar