Allow for class annotations as a default for when an annotation is not present on a method

This commit is contained in:
jmp 2020-10-21 23:51:56 -07:00 committed by Alexander Söderberg
parent d37f2236e7
commit c9d4f39612
7 changed files with 40 additions and 19 deletions

View file

@ -31,7 +31,7 @@ import java.lang.annotation.Target;
/**
* Equivalent to {@link cloud.commandframework.Command.Builder#permission(String)}
*/
@Target(ElementType.METHOD)
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface CommandPermission {