Please sign in to comment.
Add support for CommandPermission annotation as parameter for permiss… (
#197) …ions by Optional annotation In the past we could not handle a permission in relation to the presence of an optional argument, it forced us to manage it in the body of the command, and could be repetitive and boring, note that it also works with the annotation Default
- Loading branch information...
Showing with 57 additions and 15 deletions.
- +6 −7 .idea/compiler.xml
- +9 −2 core/src/main/java/co/aikar/commands/CommandExecutionContext.java
- +22 −3 core/src/main/java/co/aikar/commands/CommandParameter.java
- +18 −1 core/src/main/java/co/aikar/commands/RegisteredCommand.java
- +2 −2 core/src/main/java/co/aikar/commands/annotation/CommandPermission.java