✨ Allow for class annotations as a default for when an annotation is not present on a method
This commit is contained in:
parent
d37f2236e7
commit
c9d4f39612
7 changed files with 40 additions and 19 deletions
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue