diff --git a/src/main/java/net/pingex/dcf/commands/AnnotatedCommand.java b/src/main/java/net/pingex/dcf/commands/AnnotatedCommand.java index 9321834..d7b8b73 100644 --- a/src/main/java/net/pingex/dcf/commands/AnnotatedCommand.java +++ b/src/main/java/net/pingex/dcf/commands/AnnotatedCommand.java @@ -11,6 +11,7 @@ import java.lang.annotation.Target; */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) +@Deprecated public @interface AnnotatedCommand { /** diff --git a/src/main/java/net/pingex/dcf/commands/Command.java b/src/main/java/net/pingex/dcf/commands/Command.java index f8f2114..bcd1425 100644 --- a/src/main/java/net/pingex/dcf/commands/Command.java +++ b/src/main/java/net/pingex/dcf/commands/Command.java @@ -227,6 +227,7 @@ public abstract class Command implements ICommandExecutor * @param target Target method * @return A new created command built from the method, or `null` if the method is not a valid command. */ + @Deprecated public static Command buildFromAnnotatedCommand(AnnotatedCommand meta, Method target, Object invokable) { return builder(meta.name()) diff --git a/src/main/java/net/pingex/dcf/commands/IWithAnnotatedCommands.java b/src/main/java/net/pingex/dcf/commands/IWithAnnotatedCommands.java index e81e9e4..c27538e 100644 --- a/src/main/java/net/pingex/dcf/commands/IWithAnnotatedCommands.java +++ b/src/main/java/net/pingex/dcf/commands/IWithAnnotatedCommands.java @@ -6,6 +6,7 @@ import java.util.Set; * Indicates a plugin which can run commands (using annotated commands) */ @FunctionalInterface +@Deprecated public interface IWithAnnotatedCommands { /**