Player tab completion fixed.
This commit is contained in:
parent
4541d60bd0
commit
7f53b52d1c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user