PRO Vote originally only had added support for higher revisions, we've just now added support for lower revisions.
We currently support : 317 (pi) and 667/718 (matrix)
Don't want to visit links for tutorials? That's fine!
[SPOIL]
Please make sure you have downloaded all our libraries and placed them in the library (libs) folder before you begin.
Locate your Commands.java file
Found it? Great! now import our handler.
Code:
import voteHandler.org.vote.*;
Next you need to add in the server id and api key, just as follows, make sure this is near the top.
Code:
public static voteHandler vote = new voteHandler("SERVER ID", "API KEY");
Now in the same file, where normal player commands are handled, add in
Code:
if (playerCommand.startsWith("auth")) {
try {
String[] args = playerCommand.split(" ");
if (args.length < 1) {
c.sendMessage("Usage : ::auth codehere");
return;
}
String authCode = args[1];
boolean success = vote.authenticate(authCode);
if (success == true) {
c.sendMessage("Successfully redeemed authorization code!");
//add reward here, perhaps a dialogue with options etc
} else {
c.sendMessage("Failed to redeem authorization code!");
}
} catch (Exception e) {
c.sendMessage("An error has occurred.");
}
return;
Congratulations, you've finished the tutorial.[/SPOIL]
What is PRO Vote?
PRO Vote is a more modern, secure and easier way to handle votes & rewards for your server. We do all the heavy lifting, such as handling & monitoring all the databases and callbacks with ease, enabling you to spend more time working on your server. PRO Vote allows servers that can't afford a website or aren't experienced enough to set up a voting system, to reward their players, gain more players and still receive votes.
Click here to view a demo
Why use PRO Vote?
- PRO Vote is Easy to Use, We do all the heavy lifting for you. There's little to be done on your part.
- PRO Vote is completely Free! You have nothing to lose. Want to advertise with us? Message me.
- PRO Vote provides a Stylish Widget! You can either embed our widget on your website, or use our generated web-page.
We have a basic handler written already for you Here.
Still confused? Click Here for a official PRO Vote tutorial based on your revision.
After following our simple tutorial, signing up and adding your server, all that's left needed to be done is to change the callback url on your voting pages.
If you're using PRO Vote as your voting gateway, just set your callback url to PRO Vote | Listener
I won't waste your time with words, here are a few screenshots of PRO Vote.
Want server sided support for your revision? Add my skype (thugblytas) or simply just contact me via PRO Vote
Currently we have only added support for three voting toplists. Do you have or know of a toplist and want PRO Vote to include it on our systems? Contact us!
Thanks to Luka for giving me a hand on rewriting the hashes and callbacks.