Class Request
java.lang.Object
net.sacredlabyrinth.phaed.simpleclans.Request
- Author:
- phaed
-
Constructor Summary
ConstructorsConstructorDescriptionRequest(ClanRequest type, @Nullable List<ClanPlayer> acceptors, ClanPlayer requester, String target, Clan clan, String msg) -
Method Summary
Modifier and TypeMethodDescriptionvoidCleans votesgetClan()getMsg()getType()voidbooleanvoidsetAcceptors(List<ClanPlayer> acceptors) voidvoidvoidsetRequester(ClanPlayer requester) voidvoidsetType(ClanRequest type) voidvote(String playerName, VoteResult vote) boolean
-
Constructor Details
-
Request
public Request(ClanRequest type, @Nullable @Nullable List<ClanPlayer> acceptors, ClanPlayer requester, String target, Clan clan, String msg)
-
-
Method Details
-
getType
- Returns:
- the type
-
setType
- Parameters:
type- the type to set
-
getAcceptors
- Returns:
- the acceptors
-
setAcceptors
- Parameters:
acceptors- the acceptors to set
-
getClan
- Returns:
- the clan
-
setClan
- Parameters:
clan- the clan to set
-
getMsg
- Returns:
- the msg
-
setMsg
- Parameters:
msg- the msg to set
-
getTarget
- Returns:
- the target
-
setTarget
- Parameters:
target- the target to set
-
vote
-
votingFinished
public boolean votingFinished() -
getDenies
-
getAccepts
-
cleanVotes
public void cleanVotes()Cleans votes -
getRequester
- Returns:
- the requester
-
setRequester
- Parameters:
requester- the requester to set
-
incrementAskCount
public void incrementAskCount() -
reachedRequestLimit
public boolean reachedRequestLimit()
-