Package com.bencodez.votingplugin.bungee
Class VoteCache
java.lang.Object
com.bencodez.votingplugin.bungee.VoteCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTimedVote(int num, VoteTimeQueue voteTimedQueue) voidaddVote(String server, int num, OfflineBungeeVote voteData) voidaddVoteOnline(String player, int num, OfflineBungeeVote voteData) voidnet.md_5.bungee.config.ConfigurationgetData()getOnlineVotes(String name) net.md_5.bungee.config.ConfigurationgetOnlineVotes(String name, String num) getServerVotes(String server) net.md_5.bungee.config.ConfigurationgetServerVotes(String server, String num) net.md_5.bungee.config.ConfigurationgetTimedVoteCache(String key) intgetVotePartyCache(String server) intintvoidload()voidsave()voidsetVotePartyCache(String server, int amount) voidsetVotePartyCurrentVotes(int amount) voidsetVotePartyInreaseVotesRequired(int amount)
-
Constructor Details
-
VoteCache
-
-
Method Details
-
getVotePartyCurrentVotes
public int getVotePartyCurrentVotes() -
getVotePartyInreaseVotesRequired
public int getVotePartyInreaseVotesRequired() -
setVotePartyCurrentVotes
public void setVotePartyCurrentVotes(int amount) -
setVotePartyInreaseVotesRequired
public void setVotePartyInreaseVotesRequired(int amount) -
setVotePartyCache
-
getVotePartyCache
-
addVote
-
addTimedVote
-
addVoteOnline
-
clearData
public void clearData() -
getOnlineVotes
-
getOnlineVotes
-
getPlayers
-
getServers
-
getTimedVoteCache
-
getTimedVoteCache
-
getServerVotes
-
getServerVotes
-
load
public void load() -
save
public void save() -
getData
public net.md_5.bungee.config.Configuration getData()
-