diff --git a/VotingPlugin/src/com/bencodez/votingplugin/cooldown/CoolDownCheck.java b/VotingPlugin/src/com/bencodez/votingplugin/cooldown/CoolDownCheck.java index a9c034a0a..70144ebd4 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/cooldown/CoolDownCheck.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/cooldown/CoolDownCheck.java @@ -65,21 +65,14 @@ public void checkPerSite(UUID uuid) { } public void vote(VotingPluginUser user, VoteSite site) { - timer.schedule(new Runnable() { - - @Override - public void run() { - if (cooldownCheckEnabled) { - schedule(user); - } - - if (plugin.getConfigFile().isPerSiteCoolDownEvents()) { - user.setCoolDownCheckSite(site, Boolean.FALSE); - schedulePerSite(user); - } - } - }, 10, TimeUnit.SECONDS); + if (cooldownCheckEnabled) { + schedule(user); + } + if (plugin.getConfigFile().isPerSiteCoolDownEvents()) { + user.setCoolDownCheckSite(site, Boolean.FALSE); + schedulePerSite(user); + } } public synchronized void check(VotingPluginUser user) { @@ -159,7 +152,7 @@ public void run() { check(uuid); } } - }, time + 2, TimeUnit.SECONDS); + }, time + 60, TimeUnit.SECONDS); allSiteTasks.put(uuid, scheduledFuture); }