# CatchUnknown (ACF (Core) 0.5.1-SNAPSHOT API)
declaration: package: co.aikar.commands.annotation, annotation type: CatchUnknown

Package co.aikar.commands.annotation

# Annotation Type CatchUnknown

@Retention(RUNTIME) @Target({METHOD,ANNOTATION_TYPE}) public @interface CatchUnknown
Defines a method that should receive any unknown command for the related root command. For example, if a BaseCommand /foo has a method with this, and /foo someunknowncommand is used If a method is tagged with this annotation, it will catch unknown commands and let you react to them. Only one instance of this annotation can be used per root command.