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
I swear if, I'll love you if you get this out. I really need a good bungee fire listener and the only 2 options are this really good one and the practice one they have which doesn't do as much as I need it to, this on the other hand, does.
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
@xPuyttre
FINALLY!!!!!!!!!!!! :D
@xPuyttre
Awesome, can not wait.
@xPuyttre
And when is this update coming?
@xPuyttre
Hey, each time I vote, the console receives it and says that the player has received the reward but the player never gets the reward. Can you help me?
Big update coming. Please wait for v3.0 before downloading this, as this version is very buggy!
I cannot get the OFFLINE commands to work when a player votes offline... any clue why this is happening to me??? The online commands work just fine though.
Would be great if you could element someone that checks if the username is real (Checks Minecraft for it or something) and if not then dont broadcast the vote or try to execute anything. (I've had users putting abusive things as username then that gets broadcasted)
@World_Chaos
just use this instead ;
Sends public broadcast to server. public-message: '&e%name% voted from %service% at %time%.'
@InfroCZE
Same here. It only rewards for one vote no matter how many times they have voted offline.
For some reason it wont work what version does it work up to
@fritzpeace
Just set
to
or something like
If you don't like leaving things blank.
Hope I helped!
@hutt132
It happens to me too. And what more, if player votes offline more than once, they will get only one reward
There is something wrong in your JoinEvent on line 22. It should be
but it is
I missed the feature, that a random command will be executed so I added a "random-commands" area in the config. works nice. now the commands have to be executed depending on which world the online user is when he votes and maybe the offline voters should be saved in a file so the login-commands can also be executed whilest the server has been restarted in the meantime. maybe you could add those things for later releases :)
nice and compact plugin, thanks!
How can i disable the broadcast message?
@Zaphrae
Make sure that the plugin you are using is right like mine is /eco give %name% 2000
why doesn't the voting players get money? it says the thankyou message but no-one gets money?
thanks in advance
This listener is very unstable. My players are constantly telling me they don't get the diamonds when they vote sometimes. Sometimes they get diamonds, sometimes they don't.
How to I make it so this command does not show up in the chat
I don't want peoples addresses broadcasted