diff --git a/common/src/main/java/revxrsal/commands/annotation/Length.java b/common/src/main/java/revxrsal/commands/annotation/Length.java index 9b8b6230..f91259dc 100644 --- a/common/src/main/java/revxrsal/commands/annotation/Length.java +++ b/common/src/main/java/revxrsal/commands/annotation/Length.java @@ -25,6 +25,11 @@ import org.jetbrains.annotations.Range; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + /** * An annotation that requires {@link String} parameters to have size * in the range of {@link Length#min()} and {@link Length#max()} (both inclusive) @@ -32,6 +37,8 @@ * Note: If a parameter has {@link #min()} == 0, it will automatically be * marked as optional. */ +@Target(ElementType.PARAMETER) +@Retention(RetentionPolicy.RUNTIME) public @interface Length { /**