diff --git a/VotingPlugin/src/com/bencodez/votingplugin/user/VotingPluginUser.java b/VotingPlugin/src/com/bencodez/votingplugin/user/VotingPluginUser.java index 9f99bb419..1927880ce 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/user/VotingPluginUser.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/user/VotingPluginUser.java @@ -4,7 +4,6 @@ import java.time.Duration; import java.time.Instant; import java.time.LocalDateTime; -import java.time.YearMonth; import java.time.ZoneId; import java.util.ArrayList; import java.util.Collections; @@ -1092,7 +1091,7 @@ public void setTotal(TopVoter top, int value) { case Monthly: if (plugin.getConfigFile().isLimitMonthlyVotes()) { LocalDateTime time = plugin.getTimeChecker().getTime(); - int days = YearMonth.of(time.getYear(), time.getMonth()).lengthOfMonth(); + int days = time.getDayOfMonth(); if (value >= days * plugin.getVoteSites().size()) { value = days * plugin.getVoteSites().size(); }