Class VoteCache
java.lang.Object
com.bencodez.simpleapi.file.velocity.VelocityJSONFile
com.bencodez.votingplugin.bungee.velocity.VoteCache
public class VoteCache
extends com.bencodez.simpleapi.file.velocity.VelocityJSONFile
-
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
getOnlineVotes
(String name) ninja.leaping.configurate.ConfigurationNode
getOnlineVotes
(String name, String num) getServerVotes
(String server) ninja.leaping.configurate.ConfigurationNode
getServerVotes
(String server, String num) ninja.leaping.configurate.ConfigurationNode
getTimedVoteCache
(String name) int
getVotePartyCache
(String server) int
int
void
setVotePartyCache
(String server, int amount) void
setVotePartyCurrentVotes
(int amount) void
setVotePartyInreaseVotesRequired
(int amount) Methods inherited from class com.bencodez.simpleapi.file.velocity.VelocityJSONFile
getBoolean, getConf, getData, getFile, getInt, getKeys, getLong, getNode, getString, getStringList, reload, save, setConf
-
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
-
getTimedVoteCache
-
getOnlineVotes
-
getPlayers
-
getServers
-
getTimedVoteCache
-
getServerVotes
-
getServerVotes
-