diff --git a/VotingPlugin/src/com/bencodez/votingplugin/objects/VoteSite.java b/VotingPlugin/src/com/bencodez/votingplugin/objects/VoteSite.java index eb3a902e1..82d682e67 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/objects/VoteSite.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/objects/VoteSite.java @@ -133,6 +133,7 @@ public void broadcastVote(VotingPluginUser user, boolean checkBungee) { (user.getPlayer() != null) ? user.getPlayer().getDisplayName() : user.getPlayerName()); placeholders.put("sitename", getDisplayName()); placeholders.put("servicesite", getServiceSite()); + placeholders.put("votesrequired", "" + plugin.getVoteParty().getVotesRequired()); bc = StringParser.getInstance().replacePlaceHolder(bc, placeholders); bc = StringParser.getInstance().replacePlaceHolders(user.getOfflinePlayer(), bc); ArrayList players = new ArrayList(); diff --git a/VotingPlugin/src/com/bencodez/votingplugin/user/VotingPluginUser.java b/VotingPlugin/src/com/bencodez/votingplugin/user/VotingPluginUser.java index 211f55d92..ecdc6aaea 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/user/VotingPluginUser.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/user/VotingPluginUser.java @@ -282,7 +282,7 @@ public boolean canVoteSite(VoteSite voteSite) { .withMinute(0).withSecond(0); LocalDateTime resetTimeTomorrow = resetTime.plusHours(24); - if (ChronoUnit.HOURS.between(lastVote, resetTime) > voteSite.getVoteDelay()) { + if (ChronoUnit.HOURS.between(lastVote, resetTime) > 24) { if (now.isAfter(resetTime)) { return true; }