Permalink
Browse files

CommandIssuer should be IssuerOnly context

Likely fixes #170
  • Loading branch information...
aikar committed Sep 10, 2018
1 parent 1d778b9 commit 71d0416f10f3896c0c5847960c86c7f735dde725
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/main/java/co/aikar/commands/CommandContexts.java
@@ -45,7 +45,7 @@
CommandContexts(CommandManager manager) {
this.manager = manager;
registerContext(CommandIssuer.class, c -> c.getIssuer());
registerIssuerOnlyContext(CommandIssuer.class, c -> c.getIssuer());
registerContext(Short.class, (c) -> {
try {
return parseAndValidateNumber(c, Short.MIN_VALUE, Short.MAX_VALUE).shortValue();

0 comments on commit 71d0416

Please sign in to comment.