From 96bec17d63925ef42068b507a77fc6971b5fb75b Mon Sep 17 00:00:00 2001 From: OliverSchlueter Date: Wed, 16 Aug 2023 18:39:40 +0200 Subject: [PATCH] Add '' to displayName tabcompletion --- src/main/java/de/oliver/fancynpcs/commands/npc/NpcCMD.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/de/oliver/fancynpcs/commands/npc/NpcCMD.java b/src/main/java/de/oliver/fancynpcs/commands/npc/NpcCMD.java index d6fd95e5..ef71099a 100644 --- a/src/main/java/de/oliver/fancynpcs/commands/npc/NpcCMD.java +++ b/src/main/java/de/oliver/fancynpcs/commands/npc/NpcCMD.java @@ -59,6 +59,10 @@ public class NpcCMD implements CommandExecutor, TabCompleter { return Stream.of("none") .filter(input -> input.toLowerCase().startsWith(args[2].toLowerCase())) .toList(); + } else if (args.length == 3 && args[0].equalsIgnoreCase("displayName")) { + return Stream.of("") + .filter(input -> input.toLowerCase().startsWith(args[2].toLowerCase())) + .toList(); } return null;