Skip to content

Commit

Permalink
Add '<empty>' to displayName tabcompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSchlueter committed Aug 16, 2023
1 parent e34c085 commit 96bec17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/de/oliver/fancynpcs/commands/npc/NpcCMD.java
Original file line number Diff line number Diff line change
Expand Up @@ -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("<empty>")
.filter(input -> input.toLowerCase().startsWith(args[2].toLowerCase()))
.toList();
}

return null;
Expand Down

0 comments on commit 96bec17

Please sign in to comment.