Skip to content

Commit

Permalink
Improve cooldown context API
Browse files Browse the repository at this point in the history
  • Loading branch information
Rollczi committed Dec 11, 2024
1 parent 73f080f commit d62a323
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package dev.rollczi.litecommands.cooldown;

import dev.rollczi.litecommands.util.StringUtil;
import java.time.Duration;

public class CooldownContext {
Expand All @@ -14,6 +15,10 @@ public CooldownContext(String key, Duration duration, String bypassPermission) {
this.bypassPermission = bypassPermission;
}

public CooldownContext(String key, Duration duration) {
this(key, duration, StringUtil.EMPTY);
}

public String getKey() {
return key;
}
Expand Down

0 comments on commit d62a323

Please sign in to comment.