Vote4Diamondz
Vote4Diamondz is Minecraft's premier, de facto online voting system! This plugin a complete rewrite of the original Vote4Diamondz which sparked the vote-reward craze among server owners. This plugin is a complete rewrite of the original Vote4Diamondz, making use of the latest technologies to ensure reliant, efficient, and stable operation.
Forget the hassle of Votifier listeners; Vote4Diamondz is completely customizable, easy to install, and encourages your players to vote for ALL your voting sites!
Features:
- Fully open source
- Being open source, it is FREE to use!
- Hosted on your server for your server
- Keeps a log of all votes
- IP based session protection to ensure malicious users cannot vote for others and make them lose their chance at a reward
- An unlimited number of command based rewards - Give your players Random items, Currency and More!
- No external setup, simply dump the plugin into your plugins folder and edit the vote page to include your sites
- Fully customizable. Perfect for embedding into iframes on your server's site or forum.
Quick Setup (Vote4Diamondz-v3)
Getting started with Vote4Diamondz is a snap:
- Grab the latest version from http://ci.md-5.net/job/Vote4Diamondz/lastSuccessfulBuild/ (Disclaimer: These builds are not approved by BukkitDev staff, use at your own risk!)
- Drop Vote4Diamondz.jar into your server's plugins/ folder
- Run your server once. This will generate a plugin/Vote4Diamondz folder
- In the folder you will find config.yml and sites.txt
- Open sites.txt and add the URLs for your voting sites. Vote4Diamondz supports all voting sites such as MinecraftServerFinder, Minestatus, Planetminecraft, etc.
- Open config.yml to control how rewards are given to players. Rewards are given to players after they vote on every single voting site.
- Restart your server, and navigate to www.yoursite.com:5555 to start voting!
Detailed Setup
Config.yml Setup
Sites.txt Setup
Downloads & Source Code
Stable Releases
Stable or 'recommended' builds will be uploaded to DevBukkit on a regular basis. Use this if you don't mind not having the latest features, or just want to feel secure knowing that the files are scanned by our team of highly trained monkeys, I mean staff.
Development Builds - Recommended
Thanks to the kindness of andrewkm, owner of EcoCityCraft I now have a shiny Jenkins server to host various software projects on. You may download the latest development builds at http://ci.md-5.net/job/Vote4Diamondz/.
Source Code
The source code is available on GitHub, you may check it out here: https://github.com/md-5/Vote4Diamondz/. Feel free to browse and submit pull requests. Please don't steal, I have put a lot of work into perfecting this system.
Credits
As with on any project there are a number of people to thank, so here they are.
- Cheezetarts - Owner of http://www.shadowraze.net/. Vote4Diamondz was the brainchild of Cheeze, and it was the wonderful Shadowraze server whom I develop for that enabled me to write the original version.
- andrewkm - As mentioned above he hosts the development build server for me, you can check out his server at http://www.ecocitycraft.com
- alta189 - For maximum stability and to make life easier for me I have included the SimpleSave library by alta. You can check it out at http://forums.spout.org/threads/2635/ and I highly recommend you give it a shot in your next plugin.
- The Eclipse Jetty team - These folks are behind Jetty, the high performance intergrated web server which powers Vote4Diamondz. You can learn about jetty on their site: http://www.eclipse.org/jetty/, or just pop by and say hi at #jetty on chat.freenode.net
Metrics
Vote4Diamondz collects minimal, anonymous statistics and sends them to mcstats.org. You can learn more about the system here: https://mcstats.org/learn-more/
Contact me!
The best place to get in touch with me is #md_5 on irc.esper.net You can use: http://webchat.esper.net/?nick=&channels=md_5 to chat with me directly.
Players just need to click on the banner to get the rewards w/ out voting :(
@md_5
That would be great all i needed pretty much was a confirmation that they did vote and their IGN, I've got a title plugin I wrote on my server which gives them certain titles for certain things I wrote a separate listener for another voting plugin which stored their votes into a db and gave them a title on say 50 server votes then another for 100 etc. A listener would be great I could even just use a /command once they vote 50 times etc. Deffinatly switching to this plugin though the bonus site that comes with it is cool as.
@pure07: How does a standard onPlayerVoteEvent sound? Just depend on Vote4Diamondz and register that as a listener same as any other eent. Let me know how that sounds and I will add it.
@Pure07: Which command did it run and how many votes did they need?
@Bl0c: You'll have to run your voting site on the same server your Minecraft server is hosted on. You can access the voting site with "yourminecraftserverip.com:5555", or whatever port you define in the config. Just be sure that whatever port you define is open so the public can access that page.
My site is not on the same server as minecraft. How can I linked the site with the minecraft server for the plugin work?
@Nickbbeezy
Ah thanks for the info, is there a way to get it to use a command once they reach a certain number of votes? That's pretty much all mine did
@Pure07
There's really no need for vote listeners while using this plugin. V4D allows you to run any command as defined in the config. You can give your voters items, money, ranks, whatever you choose.
Is there any vote listeners for this plugin? It looks great but im not sure if I can change my plugin to use this instead. Say every time someone votes is there a way for me to get the vote data from your plugin and send it to mine?
@Sambhur
The log shows overall top voters, unless you reset your voting data by deleting the sql file, it'll remain the same. You could accomplish what you need by pruning the data once a month. You could either do it manually or set up a cron job script to do it for you. Otherwise, that'd be something that md_5 would have to integrate.
How to operate MQLite please?
@Nickbbeezy
Oh, i never thought about that, thank you.
How does the log work? I'm interested in making voter of the month on my server. Am I able to see the top voters for each month?
@owenmin You can accomplish that by editing the vote.html inside the plugin jar. A little css or maybe javascript could get that done.
@md_5 Okay go it to work. Works nicely! Any chance of hooking into https://minotar.net/ to display Minecraft avatars next to top voter names?
Ok, how exactly does this work ? Do people click all the banners, close the tabs, then vote?
Also, it would be nice to add a feature so that when you click on the banner, instead of it opening a new tab, it would highlight the banner so you know what ones you have selected and it would not bother you by opening a new tab for every link.
It just seems a little complex for people voting.
@Nickbbeezy
You need to seperate banner and site by a space not newline, eg: vote.php?xxx rank.phpxxx /vote /logo/xxx.png
The plugin includes a webserver running on port 5555, so: http://mc.cheatsynation.com:5555 should work. Check your firewall.
My server is locally hosted and my server website is web hosted, so I'm really understanding on how to set up the voting page so other people can access it. Do I need to set up some kind of locally hosted web server? Also, all of my voting sites are not showing up on my voting page:
Sites.txt: http://prntscr.com/h43f8
Voting page: http://prntscr.com/h43go
My server ip is mc.cheatsynation.com but the dns is pointed towards my local ip My site address is cheatsynation.com but the dns is pointed towards my web host ip
Hope I explain this well enough. The "navigate to www.yoursite.com:5555 to start voting! " part is not what I'm getting, right now people don't have a way of using V4D.
@Nickbbeezy
Was added in v3
However what I do when my site is on another server? Which files to the web server and put any file on the server minecraft?
@md_5 Yup, maybe something in the config to set random commands to true or false.
Thanks for this awesome plugin!
Here's what you can do with some custom HTML scripting guys! Take full advantage of this plugin!
http://www.jumanjicraft.com/vote