Skip to content

Commit

Permalink
Minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Nov 12, 2019
1 parent 928dc0c commit af5a082
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ public List<String> onTabComplete(CommandSender sender, org.bukkit.command.Comma
}
Collection<String> valueFlags = internalCommand.valueFlags();
for (String valueFlag : valueFlags) {
if (!context.hasValueFlag(valueFlag.replace("--", ""))) {
if (!context.hasValueFlag(valueFlag)) {
results.add(valueFlag);
}
}
Expand Down Expand Up @@ -516,7 +516,7 @@ private Collection<String> calculateValueFlags() {
String[] usage = commandAnnotation.usage().split(" ");
for (String part : usage) {
if (part.startsWith("--")) {
valueFlags.add(part);
valueFlags.add(part.replace("--", ""));
}
}
return valueFlags;
Expand Down

0 comments on commit af5a082

Please sign in to comment.