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
I asked for the source code for this about a month ago, and you released it. I just wanted to say Thank you! Its an awesome plugin man, my favorite vote listener!
Not working for me at all... it says votifier is connected to the website but vote listener doesnt seem to work
I cannot get this to Broadcast to my server every 5 minutes. No errors are present in console. MY SimpleVoteListener.yml: http://pastebin.com/642SkzH4
@Rorro11
It's not working for me either, I'm using the same version of svl and bukkit as you.
@rockon999
"(Rock's First Order Of Business) " I like that! :D Take your time^^
@rockon999
Sounds good sir. I was wondering why the whole Work-In-Progress section was stricken.
Guys, to all of you. I have recently taken over the project, and am still getting to know it and it's code... give me a day or two and I'll start helping you guys. Ok? :D
Still waiting for Site Checker - If a user votes from a certain website, they will receive a different award. :/
CB: 2738
SVL: 2.6
Bug that needs fixing (cancel broadcast/commands if no name is given on voting site)
Console: http://pastebin.com/jKh4un0X
ScreenShot: http://imageshack.us/photo/my-images/585/pppgn.png/
@Rorro11
Works fine on #2738 (signature provides ip) (apart from the bug i posted above lol)
Version 2.6 of svl doesnt work with latest bukkit 1.5.1 beta build #2735 or is it just my server?
Removed
@ha11oga11o
OK now i see a problem... i was offline and vote on two different services. Bot of them trigger broadcast on console, but when i join i got only one prize. They dont stack per service or what?
I did something wrong - again?
Cheers!
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.
@qiyang1996
Here it is:
http://pastie.org/7342849
@ha11oga11o
Hello. :) I am also an owner over at my server! But i can't seems to get SVL to work. Can you post ur config here and show everyone? I believe there are quite a few owners that can't seems to get their SVL/votifier to work! :)
Cheers!
@xPuyttre
OK i manage to fix it, now it works both offline and online, BUT when someone vote on minestatus.net nothing happens but at minestatus.net test is OK. I know that votifier itself issue.
Now works perfectly!
Thank you :)
@ha11oga11o
'%name% &7logged in after voting!' - is not a command. Change it to "broadcast" or "say" if you want it to send a message to the whole server.
Another problem that some have is they have a plugin that changes the name over player's heads. If this is the case, SVL won't be able to find them.
Also did he/she vote when they were offline or online?
Thanks.
Dear all im bit stuck here, im trying to configure it to give player 200 coins, and 1 diamond if theyre online when votin, and if theyre offline only coins. But all i got is
09:05:25 [INFO] Dexter voted from PlanetMinecraft.com at 1365231919 with address 93.180.xxx.xxx.
09:05:25 [INFO] [Broadcast] Go to PlanetMinecraft.com to vote for our server, just like Dexter did!
09:05:35 [INFO] Error: Player not found.
Config:
http://pastebin.com/wxQ8EiCa
Plugin list:
[INFO] Plugins (47): WorldBorder, LagMeter, GroupManager, WorldEdit, NoCheatPlus, BattleTracker, WhiteMessage, mcjobs, Vault, PlotMe, Stargate, Multiverse-Core, SimpleModerator, TreeAssist, WorldGuard, AntiJoinBot, SurvivalGames, Permissions, LongerDay, MasterPromote, AntiXRay, ServerLogSaver, RedstoneClockDetector, Timeismoney, Lockette, ProtocolLib, TimedMessages, TheEndAgain, GriefPrevention, Votifier, AutoSaveWorld, Stats, Lift, Essentials, Orebfuscator, Trade, SimpleVoteListener, EssentialsProtect, EssentialsSpawn, StargateCommand, Multiverse-Inventories, Stargate-DHD, EssentialsGeoIP, EssentialsAntiBuild, xAuth, ChestShop, EssentialsChat
Hey there. Great plugin. So far it works as expected. Except for one thing that I can't seem to find anything about.
I want to reward players for voting. Players in group "user" will get 1 diamond, and players in the group "VIP" will get 2 diamonds. Is this possible? If yes, could someone show me how. If no, is it something that could be supported?
Thanks. PacManiacDK