diff --git a/src/main/java/io/minimum/minecraft/superbvote/votes/SuperbVoteListener.java b/src/main/java/io/minimum/minecraft/superbvote/votes/SuperbVoteListener.java index f415b74..38777ad 100644 --- a/src/main/java/io/minimum/minecraft/superbvote/votes/SuperbVoteListener.java +++ b/src/main/java/io/minimum/minecraft/superbvote/votes/SuperbVoteListener.java @@ -90,9 +90,9 @@ private void processVote(PlayerVotes pv, VoteStreak voteStreak, Vote vote, boole throw new RuntimeException("No vote rewards found for '" + vote + "'"); } - if (pv.getLastVote() != null - && DateUtils.isSameDay(pv.getLastVote(), vote.getReceived()) - && SuperbVote.getPlugin().getConfig().getBoolean("votes.one-vote-per-day")) { + if (SuperbVote.getPlugin().getConfig().getBoolean("votes.one-vote-per-day") + && pv.getLastVote() != null + && DateUtils.isSameDay(pv.getLastVote(), vote.getReceived())) { SuperbVote.getPlugin() .getLogger()