mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user