Skip to content

Commit

Permalink
[+] Forgot to remove de-bug woops
Browse files Browse the repository at this point in the history
  • Loading branch information
damt committed Sep 1, 2021
1 parent 539ce65 commit 27b4c35
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/main/java/xyz/damt/command/command/Command.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,11 @@ public final Command getSubCommand(String[] args) {

List<String> strings = new ArrayList<>(Arrays.asList(commandArg));

System.out.println("[0] - " + strings);

List<String> argsList = new ArrayList<>(Arrays.asList(args));

strings.removeIf(s -> !argsList.contains(s));
commandArg = strings.toArray(new String[0]);

System.out.println("[1] - " + strings);
System.out.println("[2] - " + Arrays.toString(args));

if ((original.length - 1) == commandArg.length && commandArg.length != 0 && commandArg[commandArg.length - 1].equalsIgnoreCase(args[commandArg.length - 1])) {
return command;
}
Expand Down

0 comments on commit 27b4c35

Please sign in to comment.