Interface CooldownCreationListener<C>

Type Parameters:
C - command sender type
All Known Implementing Classes:
ScheduledCleanupCreationListener

@API(status=STABLE, since="1.0.0") public interface CooldownCreationListener<C>
Listener that gets invoked when a new cooldown is created.
Since:
1.0.0
  • Method Details

    • cooldownCreated

      void cooldownCreated(@NonNull C sender, @NonNull Command<C> command, @NonNull CooldownInstance instance)
      Invoked when a new cooldown is created.
      Parameters:
      sender - sender that the cooldown is created for
      command - command that triggered the cooldown creation
      instance - created instance