package dev.rollczi.litecommands.annotations.cooldown;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.time.temporal.ChronoUnit;

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Cooldown {

    String key();

    long count();

    ChronoUnit unit();

    /**
     * Permission, which will be used to bypass that cooldown.
     */
    String bypass() default "";

}