Skip to content
Permalink
Browse files

Register CommandIssuer context

  • Loading branch information...
aikar committed Aug 19, 2018
1 parent 0aa4cfd commit 6c7ccbd6daa78447895c1c1aa1a401abccdc7030
Showing with 12 additions and 0 deletions.
  1. +11 −0 .idea/compiler.xml
  2. +1 −0 core/src/main/java/co/aikar/commands/CommandContexts.java
@@ -33,4 +33,15 @@
<module name="example-plugin" target="1.8" />
</bytecodeTargetLevel>
</component>
<component name="JavacSettings">
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
<module name="acf-bukkit" options="-parameters" />
<module name="acf-bungee" options="-parameters" />
<module name="acf-core" options="-parameters" />
<module name="acf-jda" options="-parameters" />
<module name="acf-paper" options="-parameters" />
<module name="acf-parent" options="-parameters" />
<module name="acf-sponge" options="-parameters" />
</option>
</component>
</project>
@@ -45,6 +45,7 @@

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();

0 comments on commit 6c7ccbd

Please sign in to comment.
You can’t perform that action at this time.