Annotation Interface Cooldown
- Author:
- Despical
Created at 1.02.2024
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionCommand senders that have this permission will bypass the command cooldown.booleanIf option is true, console will be affected by cooldowns; otherwise, it will override the delay to use the command again.The time unit of command cooldown.
-
Element Details
-
value
long valueThe time between using command again. Use 0 (zero) or a negative value for no cooldown.- Returns:
- value of the time to use the command again.
-
timeUnit
TimeUnit timeUnitThe time unit of command cooldown.- Returns:
- unit of the cooldown.
- Default:
SECONDS
-
bypassPerm
String bypassPermCommand senders that have this permission will bypass the command cooldown.- Returns:
- permission that can bypass cooldown.
- Default:
""
-
overrideConsole
boolean overrideConsoleIf option is true, console will be affected by cooldowns; otherwise, it will override the delay to use the command again.- Returns:
- false if console overrides cooldowns, otherwise true
- Default:
false
-