Interface CooldownActiveListener<C>

Type Parameters:
C - command sender type

@API(status=STABLE, since="1.0.0") public interface CooldownActiveListener<C>
Notifies command senders that they have an active cooldown.
Since:
1.0.0
  • Method Details

    • cooldownActive

      void cooldownActive(@NonNull C sender, @NonNull Command<C> command, @NonNull CooldownInstance cooldown, @NonNull Duration remainingTime)
      Invoked when a cooldown is preventing the sender from executing a command.
      Parameters:
      sender - command sender to notify
      command - command that could not be executed
      cooldown - cooldown instance
      remainingTime - remaining time