Skip to content

Commit

Permalink
tab
Browse files Browse the repository at this point in the history
  • Loading branch information
yueyinqiu committed Aug 14, 2020
1 parent 22f3159 commit d0edd95
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,14 @@ public List<String> tabComplete(int layer, RootPlugin rootPlugin,
return null;
}
}
return getTabComplete(rootPlugin,args.length - (layer + 1));

List<String> result = new ArrayList<>();
for (String str : getTabComplete(rootPlugin,args.length - (layer + 1)))
{
if(str.startsWith(args[args.length - 1]))
result.add(str);
}
return result;
}

protected boolean sendHelp(DotDividedStringBuilder messageKey,
Expand Down

0 comments on commit d0edd95

Please # to comment.