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
@gamermanh
Hi,
Can you post your config please? Preferably on pastie.org or pastebin.com
Version of CraftBukkit: Newest 1.5.1Dev
Version of SVL: 2.5
Version of Votifier: The newest, idk the number
Errors in console (If there are any): None
Voting service/website: All the ones I use (there's like 11)
For some reason it works totally fine if I don't change anything in the config. When I change the /give command to /eco give (for money rather than a diamond), it doesn't even broadcast that someone has voted, the plugin just seems to quit working.
@321GBR
@xPuyttre
Voting Service:
When they vote, they get nothing
@321GBR
Please read the "Issues" section above.
Help please, when people vote, nothing happens.... i installed the plugin and nothing happens when they vote, help please.. thank you
I updated SVL (to version 2.5) and it should fix the login commands issue for most of you guys. (It still has to be verified by Bukkit before being published)
@xPuyttre
When people vote offline, it shows the offline voting message but at the same time does the online command.
@deleted_9935739
Yes. Some people are having problems with this, while others have none at all. I don't know what to suggest because I don't know what's wrong with it.
@danielfr789
The website you vote from sends a specific name of their service, but it could be possible sometime in the future to catch a name and replace it with something set in the config. Don't expect it to be done soon, though.
As a suggestion can you make it in the config where we can modify the names from the service?
"COMPLETE: Offline Votes - Players can vote offline, and then join the server and they will receive their awards." is this in the latest build?
@xPuyttre
The login commands don't work. I'm still using 1.4.7 config with 2.4 and everything works fine.
how do i edit the jar file (im on a mac)
@jacklink01
Here's the source: http://github.com/Puyttre/SimpleVoteListener
@xPuyttre
YAML is fine. It's the same config we used before 1.5 and it worked fine. Plus, the top portion of the config works fine. It's just the commands aren't being run. Do you run them in console or as a player?
@xsonarx
Are you having any of the same problems as Jake7209 or jacklink01?
@Jake7902
What version of SVL are you using? There isn't an SVL version 1.5 yet :P
How do you know the vote is received by Votifier but not SVL? Can you post some console information?
@jacklink01
There may be changes in the Bukkit API. Anyways, have you parsed your YAML file to make sure there's no errors?
Version of CraftBukkit: 1.5.1 Version of SVL: 1.5 Version of Votifier LATEST Errors in console (If there are any): Votifier recieves the vote, SVL recieves nothing. Voting service/website: PMC
It now works with PMC but SVL is not linking with votifier AT ALL. Players get no items in game!
Hi,
This plugin isn't running commands anymore. On 1.5.1 with the latest SVL. It won't run any of the commands that i've defined on the commands list.
The thanks for voting messages still appear though.
Could another plugin be interfering?
@xPuyttre
@Jake7902
SVL works fine on 1.5.1 CB #2691.
@ xPuyttre
Thanks for the reply. I have the latest Votifier version but I do not think it is compatible with 1.5. Hopefully SVL will be compatible for 1.5 soon!
Thanks!