Package com.bencodez.votingplugin.bungee
Class VoteCache
java.lang.Object
com.bencodez.votingplugin.bungee.VoteCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTimedVote
(int num, VoteTimeQueue voteTimedQueue) void
addVote
(String server, int num, OfflineBungeeVote voteData) void
addVoteOnline
(String player, int num, OfflineBungeeVote voteData) void
net.md_5.bungee.config.Configuration
getData()
getOnlineVotes
(String name) net.md_5.bungee.config.Configuration
getOnlineVotes
(String name, String num) getServerVotes
(String server) net.md_5.bungee.config.Configuration
getServerVotes
(String server, String num) net.md_5.bungee.config.Configuration
getTimedVoteCache
(String key) int
getVotePartyCache
(String server) int
int
void
load()
void
save()
void
setVotePartyCache
(String server, int amount) void
setVotePartyCurrentVotes
(int amount) void
setVotePartyInreaseVotesRequired
(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()
-