Class TopVoterHandler
java.lang.Object
com.bencodez.votingplugin.topvoter.TopVoterHandler
- All Implemented Interfaces:
org.bukkit.event.Listener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
String[]
Top voters weekly.void
void
onDateChanged
(com.bencodez.advancedcore.api.time.events.DateChangedEvent event) void
onDayChange
(com.bencodez.advancedcore.api.time.events.DayChangeEvent event) void
onMonthChange
(com.bencodez.advancedcore.api.time.events.MonthChangeEvent event) void
onPreDateChanged
(com.bencodez.advancedcore.api.time.events.PreDateChangedEvent event) void
onWeekChange
(com.bencodez.advancedcore.api.time.events.WeekChangeEvent event) void
register()
void
void
void
resetTotals
(TopVoter topVoter) void
resetVoteShopLimit
(String shopIdent) sortByValues
(LinkedHashMap<TopVoterPlayer, Integer> map, boolean order) void
storeTopVoters
(TopVoter top) String[]
topVoterAllTime
(int page) Top voter all timeString[]
topVoterDaily
(int page) Top voter weekly.String[]
topVoterMonthly
(int page) Top voter monthlyString[]
Top voters all timeString[]
Top voters daily.String[]
Top voters.String[]
topVoterWeekly
(int page) Top voter weekly.void
updateTopVoters
(LinkedHashMap<TopVoter, LinkedHashMap<TopVoterPlayer, Integer>> tempTopVoter)
-
Constructor Details
-
TopVoterHandler
-
-
Method Details
-
getTopVoterBlackList
-
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
-
resetVoteShopLimit
-
resetTotals
-
bungeeHandleResets
public boolean bungeeHandleResets() -
sortByValues
public LinkedHashMap<TopVoterPlayer,Integer> sortByValues(LinkedHashMap<TopVoterPlayer, Integer> map, boolean order) -
storeTopVoters
-
topVoterAllTime
Top voter all time- Parameters:
page
- the page- Returns:
- the string[]
-
topVoterDaily
Top voter weekly.- Parameters:
page
- the page- Returns:
- the string[]
-
topVoterMonthly
Top voter monthly- Parameters:
page
- the page- Returns:
- the string[]
-
topVotersAllTime
Top voters all time- Returns:
- the string[]
-
topVotersDaily
Top voters daily.- Returns:
- the string[]
-
topVotersMonthly
Top voters.- Returns:
- the string[]
-
topVoterWeekly
Top voter weekly.- Parameters:
page
- the page- Returns:
- the string[]
-
updateTopVoters
public void updateTopVoters(LinkedHashMap<TopVoter, LinkedHashMap<TopVoterPlayer, Integer>> tempTopVoter)
-