mirror of
https://github.com/songoda/UltimateKits.git
synced 2024-11-23 10:45:57 +01:00
debug
This commit is contained in:
parent
bb0495bfa3
commit
630effb6f7
@ -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))) {
|
||||||
|
Loading…
Reference in New Issue
Block a user