Simple Vote Listener
SimpleVoteListener
SVL requires Java 7
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
- Drop SimpleVoteListener.jar into your plugins directory.
- Reload or restart your server.
- 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
It's just not working. At all. Kinda new to the admin side of running a server so I don't know much about the scripting or anything.
CraftBukkit version- 1.5.2
Votifier version- 1.9
SVL version- 2.6
Voting service- Enjin listed voting sites? None of them are working with this.
Link to config file using pastie.org or pastebin.com CHECK YOUR CONFIG FIRST!- http://pastie.org/7760729 I hope I did this right :/
Errors in console, using pastie.org or pastebin.com (if any errors are present)- no errors, just not responding at all to votes.
Update Please
Feature suggestion: Add a permission node to only allow certain groups, Ect. I am co-owner and when i vote it changes my group, I want to stop that from happening.
@Drewbie93
@danielfr789
@joeyvader123
@Nikz11
@Cookiezowner
I'm now testing the plugin against the latest Beta... again. :)
This plugin doesnt work for me! it says when I vote on websites ur vote has been registerd but in game nothing happends.
Can you add an option so after they vote on all the sites they type /claim and it executes the commands set? I cant find a listener that does this.
Trying to give someone a token for voting with http://dev.bukkit.org/server-mods/reward-token/
Using the command: rt give %name% 1 in the config however it is not going through for those who vote. I can do the command fine in game and through the console, it seems something with this plugin though. Could you offer any assistance? Thanks.
@Cookiezowner I have the same problem i think v2.6 doesn't create any directories or configuration files for me.
@rockon999
Does This Plugin Have An Configuration File? Is This.. # Sends private message to the voting player. private-message: '&eThanks for voting!'
I Am Having Trouble Finding out.. :D :D
Heyy, AlexMarkey Its Adnashah1 :D
@NegroBob
the plugin doesnt currently support "Magic" codes in the Public messages, and private messages, sadly at the moment it only supports Colour codes.
Im sure this feature will be added shortly tho!
@rockon999
Much Appreciated !!!
how do I put format in there. When I put &l it show up as &lplayer voted
@alexmarkey
Hm.. yes that is an issue. I'll start working on it.
Do you reckon you could /n to designate a new line in the message?
Thanks
@alexmarkey
Yes, I am no longer developing this plugin. Thanks for the suggestion though, I'm sure Rockon will consider adding this into a future build.
@Lazor_16
This issue is nothing to do with this plugin. if you are rewarding players, all this plugin does is punch out the command that you tell it to do
Great Listener. It works really good on my server. The only issue I have with it is the amount of items given to the person who voted...
I have it set to give the Voter 2 diamonds and 2 XP Bottles, but it gives them 66 of both. A stack of 64, plus two. With both.
I need to fix this as soon as possible, but am not sure what the issue is. Any and all help is much appreciated.
This plugin is not creating a directory and the config files upon restart? I'm using 1.5.1-R0.2 and Votifier 1.9 and SVL 2.6