Class VotingPluginUser

java.lang.Object
com.bencodez.advancedcore.api.user.AdvancedCoreUser
com.bencodez.votingplugin.user.VotingPluginUser

public class VotingPluginUser extends com.bencodez.advancedcore.api.user.AdvancedCoreUser
The Class User.
  • Constructor Details

  • Method Details

    • addAllTimeTotal

      public void addAllTimeTotal()
    • addDayVoteStreak

      public void addDayVoteStreak()
    • addMonthTotal

      public void addMonthTotal()
    • addMonthVoteStreak

      public void addMonthVoteStreak()
    • addOfflineVote

      public void addOfflineVote(String voteSiteName)
    • addPoints

      public void addPoints()
      Adds the points.
    • addPoints

      public int addPoints(int value)
      Adds the points.
      Parameters:
      value - the value
      Returns:
      current total points
    • addPoints

      public int addPoints(int value, boolean async)
    • addTotal

      public void addTotal()
      Adds the total.
    • addTotalDaily

      public void addTotalDaily()
      Adds the total daily.
    • addTotalWeekly

      public void addTotalWeekly()
      Adds the total weekly.
    • addWeekVoteStreak

      public void addWeekVoteStreak()
    • bungeeVote

      public void bungeeVote(String service, BungeeMessageData text, boolean setTotals)
    • bungeeVoteOnline

      public void bungeeVoteOnline(String service, BungeeMessageData text, boolean setTotals)
    • bungeeVotePluginMessaging

      public void bungeeVotePluginMessaging(String service, long time, BungeeMessageData text, boolean setTotals, boolean wasOnline, boolean broadcast, int num)
    • canVoteAll

      public boolean canVoteAll()
      Can vote all.
      Returns:
      true, if successful
    • canVoteAny

      public boolean canVoteAny()
    • canVoteSite

      public boolean canVoteSite(VoteSite voteSite)
      Can vote site.
      Parameters:
      voteSite - the vote site
      Returns:
      true, if successful
    • checkAlmostAllVotes

      public boolean checkAlmostAllVotes()
    • checkAllVotes

      public boolean checkAllVotes()
      Check all votes.
      Returns:
      true, if successful
    • checkDayVoteStreak

      public void checkDayVoteStreak(boolean forceBungee)
    • clearOfflineVotes

      public void clearOfflineVotes()
    • clearTotals

      public void clearTotals()
    • getAllTimeTotal

      @Deprecated public int getAllTimeTotal()
      Deprecated.
    • getBestDayVoteStreak

      public int getBestDayVoteStreak()
    • getBestMonthVoteStreak

      public int getBestMonthVoteStreak()
    • getBestWeekVoteStreak

      public int getBestWeekVoteStreak()
    • getDailyTotal

      @Deprecated public int getDailyTotal()
      Deprecated.
    • getDayVoteStreak

      public int getDayVoteStreak()
    • getDayVoteStreakLastUpdate

      public long getDayVoteStreakLastUpdate()
    • getDisableBroadcast

      public boolean getDisableBroadcast()
    • getGottenAllSitesDay

      public int getGottenAllSitesDay()
    • getGottenAlmostAllSitesDay

      public int getGottenAlmostAllSitesDay()
    • getHasGottenMilestone

      public HashMap<String,Boolean> getHasGottenMilestone()
    • getHighestDailyTotal

      public int getHighestDailyTotal()
    • getHighestMonthlyTotal

      public int getHighestMonthlyTotal()
    • getHighestWeeklyTotal

      public int getHighestWeeklyTotal()
    • getLastMonthTotal

      public int getLastMonthTotal()
    • getCoolDownCheckSiteList

      public HashMap<String,Boolean> getCoolDownCheckSiteList()
    • getCoolDownCheckSite

      public boolean getCoolDownCheckSite(VoteSite site)
    • getLastVotes

      public HashMap<VoteSite,Long> getLastVotes()
    • getLastVoteTime

      public Long getLastVoteTime()
    • getLastVoteTimesSorted

      public HashMap<VoteSite,Long> getLastVoteTimesSorted()
      Gets the last vote times sorted.
      Returns:
      the last vote times sorted
    • getMilestoneCount

      public int getMilestoneCount()
    • getMonthTotal

      @Deprecated public int getMonthTotal()
      Deprecated.
    • getMonthVoteStreak

      public int getMonthVoteStreak()
    • getOfflineVotes

      public ArrayList<String> getOfflineVotes()
    • getPoints

      public int getPoints()
      Gets the points.
      Returns:
      the points
    • getPointsPath

      public String getPointsPath()
    • getPrimaryAccount

      public UUID getPrimaryAccount()
    • getSitesVotedOn

      public int getSitesVotedOn()
    • getTime

      public long getTime(VoteSite voteSite)
      Gets the time.
      Parameters:
      voteSite - the vote site
      Returns:
      the time
    • getTotal

      public int getTotal(TopVoter top)
    • getVotePartyVotes

      public int getVotePartyVotes()
    • getVoteShopIdentifierLimit

      public int getVoteShopIdentifierLimit(String identifier)
    • getWeeklyTotal

      @Deprecated public int getWeeklyTotal()
      Deprecated.
    • getWeekVoteStreak

      public int getWeekVoteStreak()
    • giveDailyTopVoterAward

      public void giveDailyTopVoterAward(int place, String path)
    • giveMonthlyTopVoterAward

      public void giveMonthlyTopVoterAward(int place, String path)
    • giveWeeklyTopVoterAward

      public void giveWeeklyTopVoterAward(int place, String path)
    • hasGottenFirstVote

      public boolean hasGottenFirstVote()
      Checks for gotten first vote.
      Returns:
      true if user got the first vote reward
    • hasGottenFirstVoteToday

      public boolean hasGottenFirstVoteToday()
    • hasGottenMilestone

      public boolean hasGottenMilestone(int votesRequired)
      Checks for gotten milestone.
      Parameters:
      votesRequired - the votes required
      Returns:
      true, if successful
    • hasPercentageTotal

      public boolean hasPercentageTotal(TopVoter top, double percentage, LocalDateTime time)
    • hasPrimaryAccount

      public boolean hasPrimaryAccount()
    • isReminded

      public boolean isReminded()
    • isTopVoterIgnore

      public boolean isTopVoterIgnore()
    • loginMessage

      public void loginMessage()
      Login message.
    • loginRewards

      public void loginRewards()
    • logoutRewards

      public void logoutRewards()
    • offVote

      public void offVote()
      Off vote.
    • offlineBroadcast

      public void offlineBroadcast(VotingPluginUser user, boolean checkBungee, int numberOfVotes)
    • playerVote

      public void playerVote(VoteSite voteSite, boolean online, boolean broadcast, boolean bungee)
    • removePoints

      public boolean removePoints(int points)
      Removes the points.
      Parameters:
      points - the points
      Returns:
      true, if successful
    • removePoints

      public boolean removePoints(int points, boolean async)
    • resetTotals

      public void resetTotals(TopVoter topVoter)
    • sendVoteEffects

      public void sendVoteEffects(boolean online)
      Send vote effects.
      Parameters:
      online - the online
    • setAllTimeTotal

      @Deprecated public void setAllTimeTotal(int allTimeTotal)
      Deprecated.
    • setBestDayVoteStreak

      public void setBestDayVoteStreak(int streak)
    • setBestMonthVoteStreak

      public void setBestMonthVoteStreak(int streak)
    • setBestWeekVoteStreak

      public void setBestWeekVoteStreak(int streak)
    • setDailyTotal

      @Deprecated public void setDailyTotal(int total)
      Deprecated.
    • setDayVoteStreak

      public void setDayVoteStreak(int streak)
    • setDayVoteStreakLastUpdate

      public void setDayVoteStreakLastUpdate(long time)
    • setDisableBroadcast

      public void setDisableBroadcast(boolean value)
    • setGottenAllSitesDay

      public void setGottenAllSitesDay(int day)
    • setGottenAlmostAllSitesDay

      public void setGottenAlmostAllSitesDay(int day)
    • setHasGotteMilestone

      public void setHasGotteMilestone(int votesRequired, boolean b)
    • setHasGottenMilestone

      public void setHasGottenMilestone(HashMap<String,Boolean> hasGottenMilestone)
    • getGottenMilestonesPath

      public String getGottenMilestonesPath()
    • setHighestDailyTotal

      public void setHighestDailyTotal(int total)
    • setHighestMonthlyTotal

      public void setHighestMonthlyTotal(int total)
    • setHighestWeeklyTotal

      public void setHighestWeeklyTotal(int total)
    • setLastMonthTotal

      public void setLastMonthTotal(int total)
    • setLastVotes

      public void setLastVotes(HashMap<VoteSite,Long> lastVotes)
    • setCoolDownCheckSite

      public void setCoolDownCheckSite(HashMap<String,Boolean> coolDownChecks)
    • setCoolDownCheckSite

      public void setCoolDownCheckSite(VoteSite site, boolean value)
    • setMilestoneCount

      public void setMilestoneCount(int value)
    • getCoolDownCheckPath

      public String getCoolDownCheckPath()
    • getCoolDownCheckSitePath

      public String getCoolDownCheckSitePath()
    • setCoolDownCheck

      public void setCoolDownCheck(boolean coolDownCheck)
    • getCoolDownCheck

      public boolean getCoolDownCheck()
    • setMonthTotal

      @Deprecated public void setMonthTotal(int total)
      Deprecated.
    • setMonthVoteStreak

      public void setMonthVoteStreak(int streak)
    • setOfflineVotes

      public void setOfflineVotes(ArrayList<String> offlineVotes)
    • setPoints

      public void setPoints(int value)
      Sets the points.
      Parameters:
      value - the new points
    • setPoints

      public void setPoints(int value, boolean async)
    • setPrimaryAccount

      public void setPrimaryAccount(UUID uuid)
    • getNextAvailableMileStone

      public int getNextAvailableMileStone()
    • setReminded

      public void setReminded(boolean reminded)
    • setTime

      public void setTime(VoteSite voteSite)
    • setTime

      public void setTime(VoteSite voteSite, Long time)
    • setTopVoterIgnore

      public void setTopVoterIgnore(boolean topVoterIgnore)
    • setTotal

      public void setTotal(TopVoter top, int value)
    • setVotePartyVotes

      public void setVotePartyVotes(int value)
    • setVoteShopIdentifierLimit

      public void setVoteShopIdentifierLimit(String identifier, int value)
    • setWeeklyTotal

      @Deprecated public void setWeeklyTotal(int total)
      Deprecated.
    • setWeekVoteStreak

      public void setWeekVoteStreak(int streak)
    • shouldBeReminded

      public boolean shouldBeReminded()
    • voteCommandLastDate

      @Deprecated public String voteCommandLastDate(VoteSite voteSite)
      Deprecated.
    • voteCommandLastDuration

      public String voteCommandLastDuration(VoteSite voteSite)
    • voteCommandLastGUILine

      public String voteCommandLastGUILine(VoteSite voteSite)
    • voteCommandLastLine

      public String voteCommandLastLine(VoteSite voteSite)
    • voteCommandNextInfo

      public String voteCommandNextInfo(VoteSite voteSite)
    • voteCommandNextInfo

      public String voteCommandNextInfo(VoteSite voteSite, long time)
    • voteNextDurationTime

      public long voteNextDurationTime(VoteSite voteSite)
    • voteNextDurationTime

      public long voteNextDurationTime(VoteSite voteSite, long time)
    • voteStreakUpdatedToday

      public boolean voteStreakUpdatedToday(LocalDateTime time)
    • getSitesNotVotedOn

      public int getSitesNotVotedOn()
    • getTopVoterPlayer

      public TopVoterPlayer getTopVoterPlayer()
    • getNextTimeAllSitesAvailable

      public long getNextTimeAllSitesAvailable()
    • getNextTimeFirstSiteAvailable

      public long getNextTimeFirstSiteAvailable()
    • resetLastVoted

      public void resetLastVoted()
    • resetLastVoted

      public void resetLastVoted(VoteSite site)
    • getNumberOfOfflineVotes

      public int getNumberOfOfflineVotes(VoteSite site)
    • getLastVoteTimer

      public long getLastVoteTimer(VoteSite voteSite)
    • mergeData

      public void mergeData(HashMap<String,com.bencodez.advancedcore.api.user.usercache.value.DataValue> toAdd)