feat: autocomplete player names for remote gui opening
This commit is contained in:
parent
dcf5305de9
commit
4cae021d34
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ public class NickoTabCompleter implements TabCompleter {
|
||||||
if (sender instanceof Player) {
|
if (sender instanceof Player) {
|
||||||
if (args.length == 1) {
|
if (args.length == 1) {
|
||||||
return List.of("help", "check");
|
return List.of("help", "check");
|
||||||
} else if (args.length == 2 && !args[0].equalsIgnoreCase("help")) {
|
} else if (args.length >= 2 && !args[0].equalsIgnoreCase("help")) {
|
||||||
return Bukkit.getOnlinePlayers().stream().map(HumanEntity::getName).toList();
|
return Bukkit.getOnlinePlayers().stream().map(HumanEntity::getName).toList();
|
||||||
} else {
|
} else {
|
||||||
return Collections.emptyList();
|
return Collections.emptyList();
|
||||||
|
|
Loading…
Reference in a new issue