Give Anything Listener
Introduction
This is a plugin that works with Votifier 1.8 or higher, and as such should be placed inside the plugins folder NOT the listeners one. | |
This plugin listens to voting events passed from Votifier and allows you to reward players with anything when they vote for your server. | |
If you can type it as a command you can use it to in this plugin! | |
The Plugin works like a lot of the other listeners, but gives the user a detailed Configuration, on how to setup the broadcast message, and the colour / control codes they can use, Like {BOLD} etc... | |
This Plugin REQUIRES Votifier 1.8 or above! | |
When installing you must place the GAListener.jar into your /plugins folder. | |
It will then create a config.yml inside of the folder which you can edit to your liking! |
Configuration
Configuration information (Including Lucky Voters can be found) Configuration Page!
Here's a video tutorial thanks to Koz4Christ!
Metrics
This plugin utilizes Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
You can disable the stat collection via /plugins/PluginMetrics/config.yml if you wish.
Sponsors
Sponsored by MC-Index! For all your voting needs! http://www.minecraft-index.com/
Please create a ticket with any issues you are having and we would be happy to help, don't post it on the front page!
@elbel98
Are you using plugman or something? Do /gareload
HELP Planet Minecraft hasn't been working for me with only default. I added a PlanetMinecraft service. Here's my config file: http://pastie.org/5178476 Do I need .com after planetminecraft? or what's wrong...?
The lucky votes isnt working.
I have it set to a 1 in 1 chance which means they would always get something to test. They just don't get the extra item nor does the message appear. What am I doing wrong? All I did was take the sample config and edit it.
When ever I reload the plugin the config resets. I'm guessing it's because i'm doing something wrong in the config.
Here is my config: http://pastebin.com/cvKkXPvP
Thanks in advance!
Ok so I thing I have everything right, when someone votes it broadcasts the message but does not give the player anything. There username is right but they are not receiving anything. commands: /give {username} 264 5 that is the command I have set up (it is the default)
@Zulu765Austin
Got your votifier port open?
Go to this link, and put your information and click test!
- http://minestatus.net/votifier/test
I have the config set as default and my votifier is all set up, but its not registering the vote. nothing happens when you vote.
@AlterEgo1337
Try this http://pastie.org/5106023
@jamcat22
Tried that. Same story.
@Curtis4321 http://pastie.org/5104486
@dotapurex1
No, but it could be something for the future!
Does this plugin count how many votes a player has voted for the server?
@AlterEgo1337
Try removing the .com from PlanetMinecraft.com
@AlterEgo1337
Please put this into a pastie thanks.
Or atleast [code][/code]
Im having a hard time on adding more vote sites to the config. For example: settings: onlineonly: true luckyvote: false services: default: broadcast: '{GREEN}{username} {GOLD}has voted @ {GREEN}{service} {GOLD}and received {GREEN}5 Diamonds!' playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!' commands: - /give {username} 264 1 MC-Index: broadcast: '{GREEN}{username} {GOLD}has voted @ {GREEN}www.mc-index.com {GOLD}and received {GREEN}2 Diamonds {GOLD}and {GREEN}100 XP!' playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!' commands: - /give {username} 264 2 - /xp give {username} 100 PlanetMinecraft.com: broadcast: '{GREEN}{username} {GOLD}has voted @ {GREEN}www.planetminecraft.com {GOLD}and received {GREEN}20 netherwarts {GOLD}and {GREEN}10 Blaze Rods!' playermessage: '{GREEN}Thanks for voting at {AQUA}{service}!' commands: - /give {username} 372 20 - /give {username} 369 10
MC-Index works just fine but PlanetMinecraft just goes default. Could anyone correct me if im wrong?
Files just been accepted 0.3 is released!
@rtcabooservb
You would need to use '' as it will revert to the default values if the line isn't found, or if the yml is badly formatted.
The queued votes behaviour is actually intentional, it removes the entries from the config and keeps them in memory when the plugin loads. This is to prevent a /gareload from duplicating the queue if you make any config changes while the server is live. It does however seem a little awkward so I may look at handling this slightly better :)
As for bug fixes:
Looks like i'll submit 0.3 now :)
@swifteh3146
Would I have to completely remove the whole line or keep ''? Also, any ETA on stacking /give rewards? Don't worry about the feature request if there is no ETA. Don't want to rush it. ;)
Also, minor bugs I have noticed. Using 0.2, the queued votes seem to reset on server restart and when someone votes on a site that allows voting without IGN, I noticed :<service> in the queued votes section with no player name.
@rtcabooservb
Added the blank message fix, waiting for approval now :)
@swifteh3146
Sounds great. Really do appreciate the work put into the listener. :) All other listeners that give anything have either been dropped or lost support. Would it be possible to quick update the empty broadcast & messages for me and upload it to dropbox or something so I do not have to wait for dev.bukkit to accept the new file? :)
I also would like to send a donation your way, so setup a donation bar. :)
@rtcabooservb
I can remove the empty broadcasts & player messages no problem.
I'll try to think of a nice way to implement the other feature also, maybe something like an extra config option to override the broadcast message for queued votes?