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,8 +577,13 @@ public class SavageFactions extends MPlugin {
completions = completions.stream()
.filter(m -> m.toLowerCase().startsWith(lastArg))
.collect(Collectors.toList());
return completions;
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
completions.add(player.getName());
}
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
completions.add(player.getName());
}
return completions;
}
public void createTimedHologram(final Location location, String text, Long timeout) {