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
@xPuyttre
did u see my post?
@CharlieEpperly
You actually had 2 closing quotes on the public message. I just added the extra qutoes to make it look nicer, but it will still work without them :)
If players are offline, they vote on 2 websites (Or more) then they log in, they only get rewarded for 1 website. Can you make it so that the offline-commands apply for each vote
@xPuyttre
Okay thanks maybe you could add in the config that if you have no commands for on thing then you have to add ''
@CharlieEpperly
Your config has an error. Use this instead http://pastebin.com/xxc7gdYA
this plugin works fine - test it on the IP in my signature.
@CharlieEpperly
It worked on my test server.. with nothing else installed, except Essentials. Let me test it again.
I vote and nothing broadcast players dont get any rewards have you tryed this plugin on a server? and did it work Please fix it soon
@deleted_9935739
What about that build I sent you?
@rockon999
2.6 is producing the same results.
@deleted_9935739
Please try to either upgrade to 2.6, or try this test build that I tested against CB BETA 1.5.1-R0.2: https://www.dropbox.com/s/ygfy9gci9l47vuy/SimpleVoteListener.jar
@rockon999
CraftBukkit Version: Spigot 775
Votifier Version: 1.9
SVL Version: 2.5
Voting Service: All
Link to config file: http://pastebin.com/ArPf3m2R
Errors in console: None
@deleted_9935739
Could you follow the Error/Issue Format please :)
Format:
CraftBukkit version
Votifier version
SVL version
Voting service
Link to config file using pastie.org or pastebin.com
Errors in console, using pastie.org or pastebin.com (if any errors are present)
@xPuyttre
Copied the example config http://pastebin.com/ArPf3m2R . The online command, public message, and offline command all execute at the same time when someone votes offline. I also don't need to use timed commands so that's why it's blank.
@CharlieEpperly
This is Rock here (xPuyttre's helper)... I'm working on a fix for this. I'll have a jar for soon.
[EDIT] Try this: https://www.dropbox.com/s/ygfy9gci9l47vuy/SimpleVoteListener.jar (Tested Against BETA 1.5.1-R0.2)
@xPuyttre
@Andilitox
SVL isn't loading in properly because Votifier isn't being initialized. The error from Votifier says "Error initializing vote receiver. Please verify that the configured IP Address and port are not already in use. This is a common problem with hosting services and, if so, you should check with your hosting provider."
@xPuyttre
@Andilitox
Updated the issues section if you would like to fill that out.
@GeneralCrono
The timed-command is performed after a user has voted, not simply an auto-broadcaster.
@NegroBob
Updated the issues section if you would like to fill that out.
@MrWicked0
Thank you and you're welcome! :)
@CharlieEpperly
Please use the updated version of the issues section.
Umm yeah i have installed the plugin and messed with the thing but it dosnt work Help please Here is my config thing