From 00dcb10451ff0c7910c42bde00f9c5fbf92be12b Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Sun, 28 Apr 2024 15:05:50 +0200 Subject: [PATCH] hotfix flag autocomplete --- .../src/de/steamwar/bausystem/features/tracer/TraceCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceCommand.java index 9ae8b7f1..9fe03e06 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceCommand.java @@ -268,7 +268,7 @@ public class TraceCommand extends SWCommand { @Override public Collection tabCompletes(CommandSender sender, PreviousArguments previousArguments, String s) { return ViewFlag.flags.stream() - .flatMap(viewFlag -> Stream.concat(Stream.of("--" + viewFlag.name), + .flatMap(viewFlag -> Stream.concat(Stream.of("-" + viewFlag.name), Arrays.stream(viewFlag.aliases).map(name -> "-" + name))) .collect(Collectors.toList()); } -- 2.39.5