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
@TechTreck
Just plug it into the plugin folder. It should automatically connect to Votifier then.
@Gunnerrrrr, How do you connect this with Votifier?
Could you add a test vote command please?
Hey, How do I connect this with Votifier?
I have this in the config:
And when the user logs in after voting they don't get diamonds, but they get the rest of the stuff and the msg.
Anyone know why they don't get diamonds?
@Vermon122
You just put it into your plugins folder, not your listeners folder.
@TheJamiePatrol
Almost any plugin compiled in Java 6 will work in Java 7 :)
Wondering how I use formatting codes
I downloaded this plugin in my Listners folder, How do I edit this plugin? I went to my Simple Vote config thing, and it was empty what am I supposed to do?
@rockon999
is there a JRE version for lunix? and is it compleatly backwards compatable? like will it screw up other plugins?
@TheJamiePatrol
http://openjdk.java.net/install/ Follow the Java 7 instructions :)
Its working great and all but does "online-query" need to be enabled?
@TheJamiePatrol
Thanks :) Do you really mean LUnix or do you mean Linux? I'm actually really not sure where to find the LUnix version of Java 7 :P The AIO project is going good. I have taken a break from it for a while to focus on my social life. Rockon says that he will be releasing version 2.7 very soon, so you may be able to use that.
Sorry that I couldn't help.
@xPuyttre
I was just coming here to say I was using java open JDK in case thats no ok. Have you only just gone back to java 7. I am sure it was ok with java 6 before? do you know the package you need for lunix. I can't find java 7 for lunix. Also hows the AIO project going. I love your stuff :D
@TheJamiePatrol
The plugin currently only supports Java 7. You are using Java 6.
@rockon999
ok so your saying my java might be too up-to-date? never heard of that error before XD thanks for the info I love this plugin and was irritated when it didn't even launch. Also is there any updates of the AIO listener?
@TheJamiePatrol
A Major Minor error means that the Java version you have doesn't support the plugin, so you must have updated to a newer version of Java 6, but not Java 7.
@bertxsmash
Your Votifier port is already in use by something. You must change the port in the Votifier config. This isn't a SVL issue.
Craftbukki 1.5.2 v1.1 dev build 2789 Votifier 1.9 SVL 2.6 config: http://pastebin.com/bb5MY2eH console error: http://pastebin.com/ZZvW1zPu(Might be more than a single restart I just took the file and pasted it)
The problem is votes dont show up and neither do rewards
@rockon999
updated java and i get exactly the same error. Im using lunix debian if that helps atall
@deleted_9935739
This is only tested with Bukkit, I currently do not support Spigot. It SHOULD work, but I can't guarantee it will.