Interface CooldownGroup
- All Known Implementing Classes:
CooldownGroup.CommandCooldownGroup,CooldownGroup.NamedCooldownGroup
Groups cooldown together.
If two commands belong to the same group, the cooldown will be shared between those commands.
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final class -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic CooldownGroupCreates a new cooldown group that is unique to the givencommand.static CooldownGroupCreates a new cooldown group identified by the givenname.
-
Method Details
-
command
Creates a new cooldown group that is unique to the givencommand.This means that the cooldown will not be shared with any other commands.
- Parameters:
command- the command- Returns:
- the group
-
named
Creates a new cooldown group identified by the givenname.- Parameters:
name- group name- Returns:
- the group
-