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
@321GBR
As long as you followed the "Installation" instructions, it should work.
@xsonarx
That's good to know. Thanks :)
@xPuyttre
Hey mate 2.5 works perfect on CB #2738. I am now using the new config and login commands work! great work!
@xPuyttre
is there something im supposed to put in the votifier plugin folder or what... theres nothing there from SVL
@321GBR Sorry, I really don't know what the problem is. The only other problem could be that you have a plugin that changes user's names (note: this doesn't mean their display names, it's the name above their head). Other than that, I don't know. Sorry.
@Waterflow Yes, that is being worked on right now :)
@DistinctiveEra Can I see your config? And are you getting any errors in the console log?
The players in my server are not getting rewards. I set it up on MIneStatus and PLanetMInecraft they have voted on both and they have gotten nothing. I have the latest version of craftbukkit the latest version of svl and the latest version of votifier And yes I do have plugins that can run my commands
I would like if you can add this feature for getting different rewards on different serverlists:
Serverlist1: You get 1 diamond for voting Serverlist2: You get 1 iron_ingot for voting
And so on :) Great Plugin! :)
Edit: LOL, didnt read that: Site Checker - If a user votes from a certain website, they will receive a different award. Sorry!
@xPuyttre
Yes i do have those plugins, i use essentials
@321GBR
I mean, do you have a plugin that has the /broadcast, /msg, etc? Also, this ('%name% &7logged in after voting!') isn't a command, so it obviously won't be run. And this ('spawn %user%'), under timed-commands, doesn't have a time set, so it will probably display an error.
@xPuyttre
What do you mean plugins that can run my commands? you mean essentials?
@321GBR
Do you have plugins that can run your commands? And can you please fill out the issue form correctly?
@xPuyttre
http://pastebin.com/QQiXWNzg Config
Love this, though I feel it needs something.
Maybe add an option where users can hide the vote notifications with a command? Some users are complaining.
@deleted_9935739
Please update your config to match the one in the description.
@321GBR
Can you post your config?
@Matt19901
Sorry I accidentally compiled version 2.5 with Java 7 instead of Java 6. In the meantime, I recommend upgrading to Java 7, like SpartaMercenary said :) The next version (probably 3.0) will be compatible with Java 6.
Edit: Download from the section labeled "Java SE Development Kit 7u17".
java openjdk? or just java?
Voting service/website:
Everytime someone votes, they dont get the award i set in the config. Am i supposed to put something in the votifier folder from SVL or what? I would like some help please. Thanks. (like an installing guide [instead of just putting the jar in and restarting])
Version of CB: 1.5.1 SVL: 2.5 Votifier: Newest (idk number)
@Matt19901
Update your Java. UnsupportedClassVersionErrors are usually caused by having an out-of-date Java installation.
http://www.java.com/getjava/
craftbukkit ver = 1.5.1-R0.1 (Build #03923-30) Latest SVL ver = Latest Votifier ver = Latest Error in console = http://pastebin.com/4f2xfL55 First time use too
Using the latest version and the online command still runs at the same time the offline voting message.
http://pastebin.com/dLrtvPn0
@prozzenn
That's weird. I don't think the problem here is SVL. I just tested the plugin on my MacBook Pro and my Windows 7 Desktop and they both generated a config with no problem.
I would recommend trying a different build, as some features in the version you are using may have been broken. Without any further information given, I can't suggest very much.
Please tell me if you can get this issue resolved or if you have any other information that I can help you with.
Hey, sorry for bothering you but for some reason when i start the server the plugin won’t generate the folder with the .yml inside, i would really appreciate if you could help me.
Version of CraftBukkit:
1.5.1-R0.1 (Build #02723)
Version of SVL:
latest
Version of Votifier:
latest