Skip to content

Commit

Permalink
Added more debug to votestreak
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Feb 10, 2024
1 parent 97e5f73 commit f63ab7b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,10 @@ public void checkDayVoteStreak(boolean forceBungee) {
if (!voteStreakUpdatedToday(LocalDateTime.now())) {
if (!plugin.getSpecialRewardsConfig().isVoteStreakRequirementUsePercentage() || hasPercentageTotal(
TopVoter.Daily, plugin.getSpecialRewardsConfig().getVoteStreakRequirementDay(), null)) {
plugin.debug("Adding day vote streak to " + getUUID() + " "
+ plugin.getSpecialRewardsConfig().isVoteStreakRequirementUsePercentage() + " "
+ hasPercentageTotal(TopVoter.Daily,
plugin.getSpecialRewardsConfig().getVoteStreakRequirementDay(), null));
addDayVoteStreak();
plugin.getSpecialRewards().checkVoteStreak(this, "Day", forceBungee);
setDayVoteStreakLastUpdate(System.currentTimeMillis());
Expand Down

0 comments on commit f63ab7b

Please sign in to comment.