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()
|
completions = completions.stream()
|
||||||
.filter(m -> m.toLowerCase().startsWith(lastArg))
|
.filter(m -> m.toLowerCase().startsWith(lastArg))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
|
||||||
return completions;
|
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) {
|
public void createTimedHologram(final Location location, String text, Long timeout) {
|
||||||
|
Loading…
Reference in New Issue
Block a user