Interface CooldownActiveListener<C>
- Type Parameters:
C- command sender type
Notifies command senders that they have an active cooldown.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidcooldownActive(@NonNull C sender, @NonNull Command<C> command, @NonNull CooldownInstance cooldown, @NonNull Duration remainingTime) Invoked when a cooldown is preventing thesenderfrom executing a command.
-
Method Details
-
cooldownActive
void cooldownActive(@NonNull C sender, @NonNull Command<C> command, @NonNull CooldownInstance cooldown, @NonNull Duration remainingTime) Invoked when a cooldown is preventing thesenderfrom executing a command.- Parameters:
sender- command sender to notifycommand- command that could not be executedcooldown- cooldown instanceremainingTime- remaining time
-