Annotation Interface Cooldown
Adds a cooldown to the command.
- Since:
- 1.0.0
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionlongReturns the duration.Returns the time unit of theduration()}. -
Optional Element Summary
Optional Elements
-
Element Details
-
duration
long durationReturns the duration.- Returns:
- the duration
-
timeUnit
@NonNull ChronoUnit timeUnitReturns the time unit of theduration()}.- Returns:
- the time unit
-
-
-
group
String groupReturns the cooldown group.If this is empty then
CooldownConfiguration.fallbackGroup()will be used.- Returns:
- the cooldown group
- Default:
- ""
-