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
Thank you very much :).
@Jake7902
I'm not sure if either Votifier or SVL are compatible with 1.5 R0.1.
If SVL isn't displaying anything in the console, there is something wrong with PlanetMinecraft or possibly Votifier.
Hi, I have Votifier with SimpleVoteListener for my minecraft server which has an online multicraft console. I add the .jar into my plugins folder and edit all the details like the commands and broadcasts and save it. I then try to enable votifier with PMC and I type in the public key, port and address correctly but it says Did you install a vote listener?. I thought it was meant to auto-link with votifier but obviously not. Please reply. Version of Bukkit: Dev 1.5 R0.1 Version of SVL: Latest one from your bukkit download page. Version of Votifier: Again, latest one. Errors in console: None in console but were errors in trying to connect to PMC (as stated above) Voting service/website: PlanetMinecraft.com
Thanks!
@misterdurk
Read this issues section.
I am having trouble with this plugin and getting votifier to work. Is it possible that the dev for this plugin could contact me and help me out? It would be greatly appreciated. My skype is pokurz Thank you very much.
- Empire
Wondering if a good feature would be to have a chance of receiving the reward instead of a fixed reward each time.
Potentially having the chance being configurable (i.e. 0.1 would be 10% chance, 0.2 20% and so on).
@Tronic0906
Do you get the error on just Planet Minecraft or all voting sites?
@xPuyttre
I have figured out what the problem was and it work on all sites except planetminecraft.com It says my public key is different but it isn't. I also get this error. http://pastebin.com/UQiT3skU
Love this plugin can't wait for the vote counter feature to come out when it does i will donate!
@Tronic0906
Hi,
Can you please tell me your:
Its not working for me. I have setup Votifier correctly on different sites but it doesn't give players the items or say anything. When i look in console i get this.
[Server] INFO SimpleVoteListener 2.2 successfully enabled.
And i know votifier is enabled. Nothing happens though anyhelp?
@LeaveMeAlon3
try setting your config like this: http://pastebin.com/xsBA0Utk
Versions 2.1, 2.2, 2.3 fails for me. It check votes, but they don't give anything.
version 2.3 still fails with login commands, default config. User doesn't get the msg or items. but the private-message: does work.
@TYLRDA
You need to update to 2.2. I had that same problem. Now my issue is fixed.
Hello, I'm having some problems again
Here my config: http://pastie.org/6431533
Evreything works fine when the player votes, they get all their commands. But when it is time to the commands to be taken away, The console says:
09.03 12:24:19 [Server] INFO /manudelp <player> <permissions> 09.03 12:24:19 [Server] INFO Player not found!
So it looks like it can give commands fine, but it can't find the right player when it is time for the commands to be taken away? Im using version 2.0 or 2.1 and the player is online when the /manudelp permission is run
I have to use the config like this: http://pastebin.com/xsBA0Utk
@xPuyttre
I upgraded before you posted yesterday. Now my instant rewards do not work, but the timed ones do. So, to remedy the situation, I changed all my instant rewards to timed rewards of 1 minute. Also, I use minestatus.net to cast votes and have no name changers on my server. One last question, when my server restarts every 8 hours, i suppose their timed rewards go away? thus if they had a suffix, it would be removed upon restart?
I figured out the problem with instant rewards, your config file changed. Thus my rewards didnt work. I regenerated the file and attempted the rewards. Looks like all is well now. Thanks. However, do you still lose your timed rewards if the server restarts?
@ghost76549
I recommend upgrading to SimpleVoteListener 2.2.
If this doesn't fix anything, then it appears your problem is that when the vote is sent, the wrong username is sent along with it. This is caused when the service website has an outdated version of Votifier.
It also could be that you have a plugin that changes player's names. Changing display names by adding prefixes and suffixes won't break anything, but if they have a different name above their head (their name tag), it won't recognize them and will cause problems.
Thanks
@xPuyttre
ok, here is an interesting observation: I run bukkit 1.4.6 R3 and your listener 2.0 for compatibility.
Here is my YML: http://pastie.org/6402132 I am noticing that the "timed-commands" are not working. I am seeing no errors at this time in the log. Should I update your plugin? Will it work ok with 1.4.6 R3? I don't really want to update bukkit just yet. I still have a plugin that I need that has not been updated.
EDIT: here is the error: 2013-03-06 02:45:49 [INFO] Player not found! 2013-03-06 02:45:49 [INFO] /manudelv <user> <variable>