Add javadoc to the hasVotedAlready
This commit is contained in:
parent
89f709390a
commit
24ed74446b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user