Package com.bencodez.votingplugin.user
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 Summary
ConstructorsConstructorDescriptionVotingPluginUser(VotingPluginMain plugin, com.bencodez.advancedcore.api.user.AdvancedCoreUser user) VotingPluginUser(VotingPluginMain plugin, String playerName) Deprecated.VotingPluginUser(VotingPluginMain plugin, UUID uuid) Deprecated.VotingPluginUser(VotingPluginMain plugin, UUID uuid, boolean loadName) Deprecated.VotingPluginUser(VotingPluginMain plugin, UUID uuid, String playerName) Deprecated.VotingPluginUser(VotingPluginMain plugin, org.bukkit.entity.Player player) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidaddOfflineVote(String voteSiteName) voidAdds the points.intaddPoints(int value) Adds the points.intaddPoints(int value, boolean async) voidaddTotal()Adds the total.voidAdds the total daily.voidAdds the total weekly.voidvoidbungeeVote(String service, BungeeMessageData text, boolean setTotals) voidbungeeVoteOnline(String service, BungeeMessageData text, boolean setTotals) voidbungeeVotePluginMessaging(String service, long time, BungeeMessageData text, boolean setTotals, boolean wasOnline, boolean broadcast, int num) booleanCan vote all.booleanbooleancanVoteSite(VoteSite voteSite) Can vote site.booleanCheck all votes.booleanvoidcheckDayVoteStreak(boolean forceBungee) voidvoidintDeprecated.intintintbooleanbooleangetCoolDownCheckSite(VoteSite site) intDeprecated.intlongbooleanintintintintintintlonggetLastVoteTimer(VoteSite voteSite) Gets the last vote times sorted.intintDeprecated.intintlonglongintintGets the points.intintlongGets the time.intintintgetVoteShopIdentifierLimit(String identifier) intDeprecated.intvoidgiveDailyTopVoterAward(int place, String path) voidgiveMonthlyTopVoterAward(int place, String path) voidgiveWeeklyTopVoterAward(int place, String path) booleanChecks for gotten first vote.booleanbooleanhasGottenMilestone(int votesRequired) Checks for gotten milestone.booleanhasPercentageTotal(TopVoter top, double percentage, LocalDateTime time) booleanbooleanbooleanvoidLogin message.voidvoidvoidvoidofflineBroadcast(VotingPluginUser user, boolean checkBungee, int numberOfVotes) voidoffVote()Off vote.voidplayerVote(VoteSite voteSite, boolean online, boolean broadcast, boolean bungee) booleanremovePoints(int points) Removes the points.booleanremovePoints(int points, boolean async) voidvoidresetLastVoted(VoteSite site) voidresetTotals(TopVoter topVoter) voidsendVoteEffects(boolean online) Send vote effects.voidsetAllTimeTotal(int allTimeTotal) Deprecated.voidsetBestDayVoteStreak(int streak) voidsetBestMonthVoteStreak(int streak) voidsetBestWeekVoteStreak(int streak) voidsetCoolDownCheck(boolean coolDownCheck) voidsetCoolDownCheckSite(VoteSite site, boolean value) voidsetCoolDownCheckSite(HashMap<String, Boolean> coolDownChecks) voidsetDailyTotal(int total) Deprecated.voidsetDayVoteStreak(int streak) voidsetDayVoteStreakLastUpdate(long time) voidsetDisableBroadcast(boolean value) voidsetGottenAllSitesDay(int day) voidsetGottenAlmostAllSitesDay(int day) voidsetHasGotteMilestone(int votesRequired, boolean b) voidsetHasGottenMilestone(HashMap<String, Boolean> hasGottenMilestone) voidsetHighestDailyTotal(int total) voidsetHighestMonthlyTotal(int total) voidsetHighestWeeklyTotal(int total) voidsetLastMonthTotal(int total) voidsetLastVotes(HashMap<VoteSite, Long> lastVotes) voidsetMilestoneCount(int value) voidsetMonthTotal(int total) Deprecated.voidsetMonthVoteStreak(int streak) voidsetOfflineVotes(ArrayList<String> offlineVotes) voidsetPoints(int value) Sets the points.voidsetPoints(int value, boolean async) voidsetPrimaryAccount(UUID uuid) voidsetReminded(boolean reminded) voidvoidvoidsetTopVoterIgnore(boolean topVoterIgnore) voidvoidsetVotePartyVotes(int value) voidsetVoteShopIdentifierLimit(String identifier, int value) voidsetWeeklyTotal(int total) Deprecated.voidsetWeekVoteStreak(int streak) booleanvoteCommandLastDate(VoteSite voteSite) Deprecated.voteCommandLastDuration(VoteSite voteSite) voteCommandLastGUILine(VoteSite voteSite) voteCommandLastLine(VoteSite voteSite) voteCommandNextInfo(VoteSite voteSite) voteCommandNextInfo(VoteSite voteSite, long time) longvoteNextDurationTime(VoteSite voteSite) longvoteNextDurationTime(VoteSite voteSite, long time) booleanMethods inherited from class com.bencodez.advancedcore.api.user.AdvancedCoreUser
addOfflineRewards, addPermission, addPermission, addTimedReward, addUnClaimedChoiceReward, cache, cacheAsync, cacheData, cacheIfNeeded, checkDelayedTimedRewards, checkOfflineRewards, clearCache, clearTempCache, closeInv, dontCache, forceRunOfflineRewards, getCache, getChoicePreference, getChoicePreferenceData, getData, getInputMethod, getJavaUUID, getLastOnline, getNumberOfDaysSinceLogin, getOfflinePlayer, getOfflineRewards, getPlayer, getPlayerHead, getPlayerName, getPlugin, getRepeatAmount, getTimedRewards, getUnClaimedChoices, getUserData, getUserInputMethod, getUUID, giveExp, giveExpLevels, giveItem, giveItem, giveItem, giveItems, giveMoney, giveMoney, givePotionEffect, giveReward, giveReward, hasChoices, hasLoggedOnBefore, hasPermission, isBanned, isBedrockPlayer, isCached, isCacheData, isCheckWorld, isInWorld, isInWorld, isOnline, isTempCache, isVanished, isWaitForCache, loadCache, loadData, loadTimedDelayedTimer, playEffect, playParticle, playParticleEffect, playSound, preformCommand, preformCommand, remove, removePermission, removeUnClaimedChoiceReward, sendActionBar, sendBossBar, sendJson, sendJson, sendJson, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendTitle, setCheckWorld, setChoicePreference, setInputMethod, setLastOnline, setOfflineRewards, setPlayerName, setRepeatAmount, setTimedRewards, setUnClaimedChoice, setUserInputMethod, setUUID, setWaitForCache, tempCache, updateName, updateTempCacheWithColumns
-
Constructor Details
-
VotingPluginUser
Deprecated. -
VotingPluginUser
Deprecated. -
VotingPluginUser
Deprecated. -
VotingPluginUser
Deprecated. -
VotingPluginUser
Deprecated. -
VotingPluginUser
public VotingPluginUser(VotingPluginMain plugin, com.bencodez.advancedcore.api.user.AdvancedCoreUser user)
-
-
Method Details
-
addAllTimeTotal
public void addAllTimeTotal() -
addDayVoteStreak
public void addDayVoteStreak() -
addMonthTotal
public void addMonthTotal() -
addMonthVoteStreak
public void addMonthVoteStreak() -
addOfflineVote
-
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
-
bungeeVoteOnline
-
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
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. -
getBestDayVoteStreak
public int getBestDayVoteStreak() -
getBestMonthVoteStreak
public int getBestMonthVoteStreak() -
getBestWeekVoteStreak
public int getBestWeekVoteStreak() -
getDailyTotal
Deprecated. -
getDayVoteStreak
public int getDayVoteStreak() -
getDayVoteStreakLastUpdate
public long getDayVoteStreakLastUpdate() -
getDisableBroadcast
public boolean getDisableBroadcast() -
getGottenAllSitesDay
public int getGottenAllSitesDay() -
getGottenAlmostAllSitesDay
public int getGottenAlmostAllSitesDay() -
getHasGottenMilestone
-
getHighestDailyTotal
public int getHighestDailyTotal() -
getHighestMonthlyTotal
public int getHighestMonthlyTotal() -
getHighestWeeklyTotal
public int getHighestWeeklyTotal() -
getLastMonthTotal
public int getLastMonthTotal() -
getCoolDownCheckSiteList
-
getCoolDownCheckSite
-
getLastVotes
-
getLastVoteTime
-
getLastVoteTimesSorted
Gets the last vote times sorted.- Returns:
- the last vote times sorted
-
getMilestoneCount
public int getMilestoneCount() -
getMonthTotal
Deprecated. -
getMonthVoteStreak
public int getMonthVoteStreak() -
getOfflineVotes
-
getPoints
public int getPoints()Gets the points.- Returns:
- the points
-
getPointsPath
-
getPrimaryAccount
-
getSitesVotedOn
public int getSitesVotedOn() -
getTime
Gets the time.- Parameters:
voteSite- the vote site- Returns:
- the time
-
getTotal
-
getVotePartyVotes
public int getVotePartyVotes() -
getVoteShopIdentifierLimit
-
getWeeklyTotal
Deprecated. -
getWeekVoteStreak
public int getWeekVoteStreak() -
giveDailyTopVoterAward
-
giveMonthlyTopVoterAward
-
giveWeeklyTopVoterAward
-
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
-
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
-
playerVote
-
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
-
sendVoteEffects
public void sendVoteEffects(boolean online) Send vote effects.- Parameters:
online- the online
-
setAllTimeTotal
Deprecated. -
setBestDayVoteStreak
public void setBestDayVoteStreak(int streak) -
setBestMonthVoteStreak
public void setBestMonthVoteStreak(int streak) -
setBestWeekVoteStreak
public void setBestWeekVoteStreak(int streak) -
setDailyTotal
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
-
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
-
setCoolDownCheckSite
-
setCoolDownCheckSite
-
setMilestoneCount
public void setMilestoneCount(int value) -
getCoolDownCheckPath
-
getCoolDownCheckSitePath
-
setCoolDownCheck
public void setCoolDownCheck(boolean coolDownCheck) -
getCoolDownCheck
public boolean getCoolDownCheck() -
setMonthTotal
Deprecated. -
setMonthVoteStreak
public void setMonthVoteStreak(int streak) -
setOfflineVotes
-
setPoints
public void setPoints(int value) Sets the points.- Parameters:
value- the new points
-
setPoints
public void setPoints(int value, boolean async) -
setPrimaryAccount
-
getNextAvailableMileStone
public int getNextAvailableMileStone() -
setReminded
public void setReminded(boolean reminded) -
setTime
-
setTime
-
setTopVoterIgnore
public void setTopVoterIgnore(boolean topVoterIgnore) -
setTotal
-
setVotePartyVotes
public void setVotePartyVotes(int value) -
setVoteShopIdentifierLimit
-
setWeeklyTotal
Deprecated. -
setWeekVoteStreak
public void setWeekVoteStreak(int streak) -
shouldBeReminded
public boolean shouldBeReminded() -
voteCommandLastDate
Deprecated. -
voteCommandLastDuration
-
voteCommandLastGUILine
-
voteCommandLastLine
-
voteCommandNextInfo
-
voteCommandNextInfo
-
voteNextDurationTime
-
voteNextDurationTime
-
voteStreakUpdatedToday
-
getSitesNotVotedOn
public int getSitesNotVotedOn() -
getTopVoterPlayer
-
getNextTimeAllSitesAvailable
public long getNextTimeAllSitesAvailable() -
getNextTimeFirstSiteAvailable
public long getNextTimeFirstSiteAvailable() -
resetLastVoted
public void resetLastVoted() -
resetLastVoted
-
getNumberOfOfflineVotes
-
getLastVoteTimer
-
mergeData
-