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
Still having that problem I posted a while ago. The offline and online commands execute at the same time so offline voters don't get what they're voting for. Using Spigot RB and SVL 2.6.
PLEASE update this!
I can't seem to find anything in the console linked to this plugin.
Does this plugin just not work anymore? or...
@TheJamiePatrol
That means your Java is out of date. I suggest updating it.
@Craelix
firstly you don't have to my it in listeners folder, just leave the jar with all the other plugin jars. Secondly could you please put the error shown in the console when it doesn't work. I can compare it to my own error and see if we are experiencing the same problem. If we are then it is likely to have the same solution
Does anyone have a problem with this plugin not working?
Do you have to link this plugin with the website you want them to vote at? Or lets say I want them to vote at planet minecraft. If I have votifier set up on planet minecraft should it automatically work when someone votes?
If so, it does not seem to be working, I don't know exactly why. Here's my config: http://pastebin.com/PzHR9xcr
(Also, do I have to put this plugin INSIDE the folder INSIDE votifier named, "listeners"?)
Doesn't works anymore D:
This isn't working for my server?
Hey, I have used SVL allot on an old server of mine. However after that one closing down I opened a new server and tried to install SVL again. I received an error on start up after doing exactly the same method as i used to install on my previous server. I then re downloaded etc. as it suggest it may be out of date in the server log. I am still unable to figure out what is wrong with it, it is coming up as a bunch of "Class loader" errors. The log of the entire start sequence is at http://pastebin.com/wKSX9RGU and the error at start of SVL can be found at http://pastebin.com/bSxfKgvU . It also fails to load a folder with its config file from the .jar if that helps at all. I think i should also let you know that I reverted my server to the last Bukkit build I used SVL on and i still received the same error making me wonder what is the problem as both SVL and Bukkit are stable and work.
Thanks in advance for any help etc. you can offer. If you need any more info that will help figure out the cause of this problem let me know.
Other then that I just wan't to let you know that I love your plugin and congratulate you on making it and I wish you well on your latest project the AIO vote listener.
Regards - Jamie
CraftBukkit build - 2788 1.5.2-R1.0 Votifier - version 1.9 SVL - version 2.6
@rockon999
I don't blame you! Same for me XD
It's really cool that you're doing all these cool features :) Can't wait to see it!
@Justin330
AIOVL can do this with a variable (%votes%).
how do i check how many votes people have?
Need to know soon! Antares
@pajsty
What do you mean by this?
@rockon999
Multiserver support please! :)
@xPuyttre
I'm still alive :P ... the month of May and June are just really insanely busy for me... I'm still working on this plugin.... though I may make a new project for it... as my new one has a lot more features. It is going to generate an html page for top voters for your website!
Hey I need help, Does this work for 1.5.2? Thanks
@mobilephone2003
Hey, thanks for the suggestion. I don't quite know where rockon999 has went or what his plans are for this. Anyways, this is caused by the Offline vote feature which adds functionalities for when a player that hasn't joined the server yet.
You might be able to fix this by removing your broadcast from the offline commands to the login commands. If this doesn't work, I recommend using AIOVL, a re-do of this plugin.
@DylanNel02
No, there is no way to do that yet. Sorry :P
@srakath
Sounds like a problem with Votifier. Please check Votifier's Troubleshooting page.
@MCEvolutions
Thanks for the suggestion :)
@NiNJA__NAT
Thanks for the suggestion! This might work in AIOVL, however I have not tested it yet.
@TurtleStormz
No, and I don't think this would be possible unless you have a permission plugin that uses the promote or demote commands. Sorry :P
Hey, is there a way to make it so when a player votes he gets a rank, but if he already has that rank , or a better one, it doesnt ?
maybe try to add this feature where like you can customise that if player vote 10 times they will get 10000$ and if they vote 20 times they will get 20000$ and so on, and add option where the server will delete those vote every 1 month ( confinable ) thanks for reading.
@Stuartie_h_94
Got it working I just had to wait for the person to come online for it to register the new information in pex! Thanks!
Hey, I have been using your plugin now for a while and I seem to be having a bit of bother, in my config (http://pastebin.com/rJKb7dnG) I have it set up that it will have a player added to the voter group (a group I have made im my permission) however when the 24 hours is over it does not remove the group, I have tried it with the timed command (/pex user <name> group add Voter "" <time>) and also your config set up with the ;24 added to end of it, however anything I try does not remove the group voter..
Is this something I have set up wrong or is it a bug with the plugin? Thanks