From 7fb27795d90a58e86792999c9bceb1f4d777f0ba Mon Sep 17 00:00:00 2001 From: tueem Date: Mon, 14 Oct 2024 00:53:00 +0200 Subject: [PATCH] Removed Class target for the SubCommand Annotation as it makes no sense on a class --- .../marinara/interaction/commands/annotation/SubCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/SubCommand.java b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/SubCommand.java index 004f5cd..5a2a30d 100644 --- a/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/SubCommand.java +++ b/lib/src/main/java/net/tomatentum/marinara/interaction/commands/annotation/SubCommand.java @@ -5,7 +5,7 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; -@Target({ElementType.METHOD, ElementType.TYPE}) +@Target({ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) public @interface SubCommand { public String name();