Player tab completion fixed.

This commit is contained in:
ProSavage 2019-04-15 13:09:35 -05:00
parent 4541d60bd0
commit 7f53b52d1c

View File

@ -577,7 +577,12 @@ public class SavageFactions extends MPlugin {
completions = completions.stream()
.filter(m -> m.toLowerCase().startsWith(lastArg))
.collect(Collectors.toList());
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
completions.add(player.getName());
}
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
completions.add(player.getName());
}
return completions;
}