Class TopVoterHandler

java.lang.Object
com.bencodez.votingplugin.topvoter.TopVoterHandler
All Implemented Interfaces:
org.bukkit.event.Listener

public class TopVoterHandler extends Object implements org.bukkit.event.Listener
  • Constructor Details

  • Method Details

    • getTopVoterBlackList

      public ArrayList<String> getTopVoterBlackList()
    • getTopVotersWeekly

      public String[] getTopVotersWeekly()
      Top voters weekly.
      Returns:
      the string[]
    • loadLastMonth

      public void loadLastMonth()
    • onDateChanged

      public void onDateChanged(com.bencodez.advancedcore.api.time.events.DateChangedEvent event)
    • onDayChange

      public void onDayChange(com.bencodez.advancedcore.api.time.events.DayChangeEvent event)
    • onMonthChange

      public void onMonthChange(com.bencodez.advancedcore.api.time.events.MonthChangeEvent event)
    • onPreDateChanged

      public void onPreDateChanged(com.bencodez.advancedcore.api.time.events.PreDateChangedEvent event)
    • onWeekChange

      public void onWeekChange(com.bencodez.advancedcore.api.time.events.WeekChangeEvent event)
    • register

      public void register()
    • resetMilestoneCount

      public void resetMilestoneCount()
    • resetGottenMilestones

      public void resetGottenMilestones()
    • getGottenMilestonesPath

      public String getGottenMilestonesPath()
    • resetVoteShopLimit

      public void resetVoteShopLimit(String shopIdent)
    • resetTotals

      public void resetTotals(TopVoter topVoter)
    • bungeeHandleResets

      public boolean bungeeHandleResets()
    • sortByValues

      public LinkedHashMap<TopVoterPlayer,Integer> sortByValues(LinkedHashMap<TopVoterPlayer,Integer> map, boolean order)
    • storeTopVoters

      public void storeTopVoters(TopVoter top)
    • topVoterAllTime

      public String[] topVoterAllTime(int page)
      Top voter all time
      Parameters:
      page - the page
      Returns:
      the string[]
    • topVoterDaily

      public String[] topVoterDaily(int page)
      Top voter weekly.
      Parameters:
      page - the page
      Returns:
      the string[]
    • topVoterMonthly

      public String[] topVoterMonthly(int page)
      Top voter monthly
      Parameters:
      page - the page
      Returns:
      the string[]
    • topVotersAllTime

      public String[] topVotersAllTime()
      Top voters all time
      Returns:
      the string[]
    • topVotersDaily

      public String[] topVotersDaily()
      Top voters daily.
      Returns:
      the string[]
    • topVotersMonthly

      public String[] topVotersMonthly()
      Top voters.
      Returns:
      the string[]
    • topVoterWeekly

      public String[] topVoterWeekly(int page)
      Top voter weekly.
      Parameters:
      page - the page
      Returns:
      the string[]
    • updateTopVoters

      public void updateTopVoters(LinkedHashMap<TopVoter,LinkedHashMap<TopVoterPlayer,Integer>> tempTopVoter)