From e391ba88e48204897219fa0f3426daceccd8b106 Mon Sep 17 00:00:00 2001 From: BenCodez Date: Wed, 2 Oct 2024 07:31:00 -0600 Subject: [PATCH] Add extra debug to limit monthly votes --- .../bencodez/votingplugin/listeners/PlayerVoteListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/VotingPlugin/src/com/bencodez/votingplugin/listeners/PlayerVoteListener.java b/VotingPlugin/src/com/bencodez/votingplugin/listeners/PlayerVoteListener.java index 3d1dcaec0..f42da72ef 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/listeners/PlayerVoteListener.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/listeners/PlayerVoteListener.java @@ -226,7 +226,10 @@ public void onplayerVote(PlayerVoteEvent event) { } LocalDateTime cTime = plugin.getTimeChecker().getTime(); int days = cTime.getDayOfMonth(); + plugin.extraDebug("Current day of month: " + days + " Current total: " + value); if (value >= days * plugin.getVoteSitesEnabled().size()) { + plugin.debug("Detected higher month total, changing. Current Total: " + value + " Days: " + days + + " New Total: " + days * plugin.getVoteSitesEnabled().size()); user.setTotal(TopVoter.Monthly, days * plugin.getVoteSitesEnabled().size()); } }