Skip to content

Commit

Permalink
Fix coolDown issue (#48)
Browse files Browse the repository at this point in the history
For some reason, checkCoolDown is not applied by default.
  • Loading branch information
BONNe committed Sep 6, 2019
1 parent cbde6c9 commit 369f00e
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ public void setup()
}


@Override
public boolean canExecute(User user, String label, List<String> args)
{
return this.addon.getSettings().getCoolDown() > 0 && this.checkCooldown(user);
}


@Override
public boolean execute(User user, String label, List<String> args)
{
Expand Down

0 comments on commit 369f00e

Please sign in to comment.