Annotation Interface Cooldown


@Retention(RUNTIME) @Target(METHOD) public @interface Cooldown
Applies a per-invocation cooldown to a command method. Prevents repeated execution until the specified duration elapses.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
    long
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • permission

      String permission
      Default:
      ""