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 Details

    • VoteCache

      public VoteCache(File file)
  • Method Details

    • getVotePartyCurrentVotes

      public int getVotePartyCurrentVotes()
    • getVotePartyInreaseVotesRequired

      public int getVotePartyInreaseVotesRequired()
    • setVotePartyCurrentVotes

      public void setVotePartyCurrentVotes(int amount)
    • setVotePartyInreaseVotesRequired

      public void setVotePartyInreaseVotesRequired(int amount)
    • setVotePartyCache

      public void setVotePartyCache(String server, int amount)
    • getVotePartyCache

      public int getVotePartyCache(String server)
    • addVote

      public void addVote(String server, int num, OfflineBungeeVote voteData)
    • addTimedVote

      public void addTimedVote(int num, VoteTimeQueue voteTimedQueue)
    • addVoteOnline

      public void addVoteOnline(String player, int num, OfflineBungeeVote voteData)
    • clearData

      public void clearData()
    • getOnlineVotes

      public Collection<String> getOnlineVotes(String name)
    • getTimedVoteCache

      public ninja.leaping.configurate.ConfigurationNode getTimedVoteCache(String name)
    • getOnlineVotes

      public ninja.leaping.configurate.ConfigurationNode getOnlineVotes(String name, String num)
    • getPlayers

      public Collection<String> getPlayers()
    • getServers

      public Collection<String> getServers()
    • getTimedVoteCache

      public Collection<String> getTimedVoteCache()
    • getServerVotes

      public Collection<String> getServerVotes(String server)
    • getServerVotes

      public ninja.leaping.configurate.ConfigurationNode getServerVotes(String server, String num)