Add @CatchAll as a better named replacement to @UnknownHandler

UnknownHandler will still work until we remove it in some future major update
This commit is contained in:
Aikar
2018-01-14 19:01:26 -05:00
parent 235914abc1
commit a14b30caea
9 changed files with 56 additions and 19 deletions
@@ -96,7 +96,7 @@ public class SpongeRootCommand implements CommandCallable, RootCommand {
}
public void addChild(BaseCommand command) {
if (this.defCommand == null || !command.subCommands.get("__default").isEmpty()) {
if (this.defCommand == null || !command.subCommands.get(BaseCommand.DEFAULT).isEmpty()) {
this.defCommand = command;
}
addChildShared(this.children, this.subCommands, command);