Get an Epic Experience with Premium

SVL

Miscellaneous Login to Add Favorites
  • 0 Likes
  • Minecraft
  • 1,150 Monthly Downloads
  • Supports: CB 1.5.1-R0.1
  • 36,162 Total Downloads
  • Updated 04/06/2013
  • Created 01/20/2013
  • 4 Favorites
  • Project Site
  • Comments
  • Release Type: Beta
  • License: GNU General Public License version 3 (GPLv3)
  • Newest File: SimpleVoteListener v2.6
or

About SVL

SimpleVoteListener


SVL requires Java 7

I'm Sorry For The Rollercoaster Ride This Has Been.... But I'm Continuing The Project. I've Recoded The Whole System, And Am Entering Final Testing. I've Coded Full Bungeefier Support, Delayed Command Saving, Vault Integration, And Much Much More. I'm Going To Be Releasing A Beta This Weekend. Have Fun! SimpleVoteListener 2.6 Is Still Discontinued. (3.0 Is A Completely Different Code Base) -rockon999


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:

# Ayyy don't touch this it will ruin your config.
version: '1.1'

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

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

# Awards given to player when player is available.
player-awards:
# Awarded to player no matter what.
    money: 50
    permissions:
        - 'wow.cool.amazing'
    items:
        - 'WOOD:64'
    commands:
        # You can add timed commands by putting a time
        # in parenthesis followed by h/m/s: hours/minutes/seconds
        - 'group add %player% voter'
        - 'group remove %player% voter(24h)'
    specific-awards:
    # Awarded to player if applicable (stacks with general player awards)
        service:
            PlanetMinecraft:
                money: 100
                permission:
                    - 'wow.pmc.amazing'
                items:
                    - 'DIAMOND:1'
                commands:
                    - 'permission remove %player% wow.pmc.amazing(24h)'
        permissions:
            groupplugin.vip:
                money: 9001
                permission:
                    - 'wow.omg.incredible'
                items:
                    - 'DIAMOND:400'
                commands:
                    - 'permission remove %player% wow.omg.incredible(24h)'
            groupplugin.user:
                money: 20
                permission:
                    - 'wow.okay.umm'
                items:
                    - 'WOOD:64'
                    - 'DIAMOND_PICKAXE:1'
                commands:
                    - 'permission remove %player% wow.okay.umm(10m)'
        votes:
            10:
                money: 20
                permission:
                    - 'wow.okay.umm'
                items:
                    - 'WOOD:64'
                    - 'DIAMOND_PICKAXE:1'
                commands:
                    - 'permission remove %player% wow.okay.umm(25s)'
  • %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

v2.6

  • Updated to Bukkit 1.5.1 R0.1 (Beta Build)

Comments

  • #3

    Hi there. I'm having trouble with my svl config. I run this through a parser and it gives a couple errors, yet my syntax seems fine. I don't see any misplaced spaces, symbols, or indentations so I can't figure out what the issue is. I haven't tried running the server with this config, cause if it gives errors in the parser, it probably wont work ingame either. Help would be appreciated, thanks.

    http://pastebin.com/9ChRWbXh

  • #2

    What does %user% do? I can't get my finger on it. :)
    Also I'm trying to set up timed commands with pex, adding a suffix to players who have voted that lasts for about 2hours, The time command I use is

    'pex user %name% suffix " &f[&aV&f]"' < Notice the last ' , should I use %user% here instead?

    Thanks, awesome plugin overall! 

  • #1

    how do i edit the jar file (im on a mac)

  • To post a comment, please login or register a new account.
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Landmark Beta Key Giveaway!

Get My Code!