Add javadoc to the hasVotedAlready

This commit is contained in:
graywolf336 2015-06-03 16:27:17 -05:00
parent 89f709390a
commit 24ed74446b

View File

@ -96,6 +96,13 @@ public class JailVoteManager {
} }
} }
/**
* Checks if the uuid provided has voted for the player name provided.
*
* @param name of the vote for to check against
* @param id of the player voting
* @return whether the player has voted for the username provided.
*/
public boolean hasVotedAlready(String name, UUID id) { public boolean hasVotedAlready(String name, UUID id) {
if(this.votes.containsKey(name)) { if(this.votes.containsKey(name)) {
return this.votes.get(name).hasVoted(id); return this.votes.get(name).hasVoted(id);