Skip to content

Commit

Permalink
[+] Fixed finding sub-commands of a command
Browse files Browse the repository at this point in the history
  • Loading branch information
damt committed Aug 27, 2021
1 parent 23b8482 commit aa9298f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/xyz/damt/command/command/CommandFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private final void edit() {
commands.forEach(command -> {
String[] args = command.getName().split("\\s+");

if (args.length > 0)
if (args.length > 1)
return;

List<Command> subCommands = getCommands(args[0]);
Expand Down

0 comments on commit aa9298f

Please sign in to comment.