This commit is contained in:
Brianna 2019-08-14 14:11:22 -04:00
parent bb0495bfa3
commit 630effb6f7

View File

@ -35,7 +35,6 @@ public class TabManager implements TabCompleter {
String[] args = abstractCommand.hasArgs() ? (String[]) ArrayUtils.add(strings, 0, command.getName()) : strings; String[] args = abstractCommand.hasArgs() ? (String[]) ArrayUtils.add(strings, 0, command.getName()) : strings;
String cmd = abstractCommand.hasArgs() ? command.getName() : args[0]; String cmd = abstractCommand.hasArgs() ? command.getName() : args[0];
String cmd2 = args.length >= 2 ? String.join(" ", args[0], args[1]) : null; String cmd2 = args.length >= 2 ? String.join(" ", args[0], args[1]) : null;
System.out.println(String.join(" ", args));
if (!abstractCommand.hasArgs()) { if (!abstractCommand.hasArgs()) {
for (String cmds : abstractCommand.getSubCommand()) { for (String cmds : abstractCommand.getSubCommand()) {
if (cmd.equalsIgnoreCase(cmds) || (cmd2 != null && cmd2.equalsIgnoreCase(cmds))) { if (cmd.equalsIgnoreCase(cmds) || (cmd2 != null && cmd2.equalsIgnoreCase(cmds))) {