I'm trying to add Motivote to Vencillio.
I added the following command, but it's saying "redeemVote" is undefined for the type Motivote. How can I fix this?
Code:
case "redeem":
String auth = parser.nextString().replaceAll("redeem ", "");
try {
boolean success = motivote.redeemVote(auth);
if (success) {
VencillioConstants.LAST_VOTER = player.getUsername();
VencillioConstants.CURRENT_VOTES++;
player.setVotePoints(player.getVotePoints() + 1);
World.sendGlobalMessage("<img=9> @red@" + Utility.formatPlayerName(player.getUsername()) + " has just claimed an auth code");
player.send(new SendMessage("Thank you for voting, " + Utility.formatPlayerName(player.getUsername()) + "!"));
}
else {
player.send(new SendMessage("Invalid auth!"));
}
}
catch (Exception ex) {
ex.printStackTrace();
}
return true;