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
@Punkred
Probably the worst "solution" I've heard.
Broadcasts encourage players to vote, we see at least a 20% increase in votes when a consistent visual reminder is in place (that isn't a personal message to a player, that's irritating). People also like to see their name broadcasted to the server.
You clearly don't understand how voting works, or how to make efficient use of it.
Perhaps you should consider adding lucky votes for this, otherwise it works great :)
"A username wasn't specified when voting from blah blah blah"
Other testing sites don't even connect.
@mobilephone2003 The solution to your problem is VERY simple. Do not add a broadcast.. god that was hard.
Is there a way I can set it up to give out random items? Its a great plugins just wondering if there is a way?
Was hoping this would cure the issue of people being able to send through votes with fake names to get messages broadcasted.
Assuming that the plugin regards fake names as offline, when the offline command is set to do nothing, it still broadcasts as if the player was online.
E.g. "Thisserversucksjoinmyserver has just voted" can get broadcasted, which is not a legitimate name but several vote sites send votifier packets through with these names regardless
Once someone knows they can do this, they will go to town with Tor and broadcast all types of crap
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!
Hello, I'm having a problem with offline players voting. Player voted 4 times and only got rewards for 1 vote, has been happening a lot. http://pastebin.com/index/3EuCf76J
Mhm this is odd... I have this conig
http://pastebin.com/XwUy2khi
And it reconises my vote, but I dont get any items? o.o
Spigot 844 1.5.2 Votifier 1.9 SVL v2.6
allinone vote listener error in consol [AIOVL][ERROR] Unable to output to the plugins\AllInOneVL\log.txt file. please help me with this
@xPuyttre
Thanks for the response, it makes more sense now. Enjoy your vacation! :D
Thanks, Look forward to the new releases
@jkmalan
The timed commands that don't get a chance to run will be executed upon plugin disable. Also, the time is formatted in Unix time, and it is really easy to convert using a Date Converter. Both of these features will be fixed in AIO Vote Listener which is currently in Alpha stage.
Right now I cannot resolve your issues because I am on vacation with limited internet access and would just like to spend some time on vacation :)
Im a bit unsure, I read that the timed commands are run regardless of time left at server restart/reload. This means everything, not a single command will be executed afterwards?
Also, what format is the time in? I can't seem to find where it is mentioned in Votifier. If possible, I'd like to be able to set an actual time such as dd:mm:yy hh:mm:ss and perhaps this would save to a separate file upon server reload/restart so that it will continue afterwards.
Hey,
If anyone would like to help test my new plugin AIO Vote Listener, please visit http://dev.bukkit.org/server-mods/aiovl/ (awaiting approval from BukkitDev staff). This is in no way finished, so don't use it as a normal plugin.
If you would like to test it, I will be away on vacation until next Monday. Just leave a comment with the feature you tested, and tell if that feature is working or not working. Also please post all the errors you encounter!
Thanks, Puyttre
What's the download link for the new version? People aren't getting money using the 1.5.1 version.
@rockon999
I'm just going to make a separate project for this new one. We can keep both projects open and then eventually combine them.
Please do submit your work when you're done, though! I am interested in what you're changing :)
Are the updates done?
@xPuyttre
Uh okay... well I'm also rewriting lots of it... so yeah :P ... I'll leave you to it :)
I am completely re-writing this plugin tonight to make it a lot easier to fix bugs and trace where most errors are coming from. I will keep you all updated.
You can view my progress here