Skip to content

Commit

Permalink
Register CommandIssuer context
Browse files Browse the repository at this point in the history
  • Loading branch information
aikar committed Aug 19, 2018
1 parent 0aa4cfd commit 6c7ccbd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions core/src/main/java/co/aikar/commands/CommandContexts.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public class CommandContexts<R extends CommandExecutionContext<?, ? extends Comm

CommandContexts(CommandManager manager) {
this.manager = manager;
registerContext(CommandIssuer.class, c -> c.getIssuer());
registerContext(Short.class, (c) -> {
try {
return parseAndValidateNumber(c, Short.MIN_VALUE, Short.MAX_VALUE).shortValue();
Expand Down

0 comments on commit 6c7ccbd

Please sign in to comment.