We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 539ce65 commit 27b4c35Copy full SHA for 27b4c35
src/main/java/xyz/damt/command/command/Command.java
@@ -79,16 +79,11 @@ public final Command getSubCommand(String[] args) {
79
80
List<String> strings = new ArrayList<>(Arrays.asList(commandArg));
81
82
- System.out.println("[0] - " + strings);
83
-
84
List<String> argsList = new ArrayList<>(Arrays.asList(args));
85
86
strings.removeIf(s -> !argsList.contains(s));
87
commandArg = strings.toArray(new String[0]);
88
89
- System.out.println("[1] - " + strings);
90
- System.out.println("[2] - " + Arrays.toString(args));
91
92
if ((original.length - 1) == commandArg.length && commandArg.length != 0 && commandArg[commandArg.length - 1].equalsIgnoreCase(args[commandArg.length - 1])) {
93
return command;
94
}
0 commit comments