Annotation Interface Cooldown


@Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface Cooldown
Adds a cooldown for the command.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    long
    The cooldown value
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The time unit in which the cooldown goes for.
  • Element Details

    • value

      long value
      The cooldown value
      Returns:
      The command cooldown value
    • unit

      TimeUnit unit
      The time unit in which the cooldown goes for.
      Returns:
      The time unit for the cooldown
      Default:
      SECONDS