diff --git a/VotingPlugin/Resources/bungeeconfig.yml b/VotingPlugin/Resources/bungeeconfig.yml index f8ad945c6..1c4e45e95 100644 --- a/VotingPlugin/Resources/bungeeconfig.yml +++ b/VotingPlugin/Resources/bungeeconfig.yml @@ -120,6 +120,7 @@ VoteCacheTime: -1 # Maxium number of votes possible per day # Usually matches the amount of votesites # Will limit vote totals to match accordingly +# Only applies for month total # Set to -1 to disable MaxAmountOfVotesPerDay: -1 diff --git a/VotingPlugin/src/com/bencodez/votingplugin/bungee/VotingPluginBungee.java b/VotingPlugin/src/com/bencodez/votingplugin/bungee/VotingPluginBungee.java index e66ba92a4..a676670aa 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/bungee/VotingPluginBungee.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/bungee/VotingPluginBungee.java @@ -1270,10 +1270,6 @@ public synchronized void vote(String player, String service, boolean realVote, b int maxVotes = getConfig().getMaxAmountOfVotesPerDay(); if (maxVotes > 0) { - if (dailyTotal > maxVotes) { - dailyTotal = maxVotes; - - } LocalDateTime cTime = getBungeeTimeChecker().getTime(); int days = cTime.getDayOfMonth(); if (monthTotal > days * maxVotes) { diff --git a/VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java b/VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java index 0d91608b0..7c246b69a 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/bungee/velocity/VotingPluginVelocity.java @@ -1306,9 +1306,6 @@ public synchronized void vote(String player, String service, boolean realVote, b int maxVotes = getConfig().getMaxAmountOfVotesPerDay(); if (maxVotes > 0) { - if (dailyTotal > maxVotes) { - dailyTotal = maxVotes; - } LocalDateTime cTime = getBungeeTimeChecker().getTime(); int days = cTime.getDayOfMonth(); if (monthTotal > days * maxVotes) {