mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-26 17:05:01 +00:00
Fix /ci tab completion throwing exceptions
This commit is contained in:
parent
9ce4dc6f3a
commit
6e140ace7d
@ -21,6 +21,7 @@ import java.time.Instant;
|
||||
import java.util.*;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.regex.Pattern;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static org.bukkit.Bukkit.getServer;
|
||||
|
||||
@ -144,10 +145,11 @@ public class FUtil
|
||||
return (count == 1 ? "" : "s");
|
||||
}
|
||||
|
||||
@SuppressWarnings("java:S6204")
|
||||
public static List<String> getPlayerList()
|
||||
{
|
||||
return getServer().getOnlinePlayers().stream().filter(player ->
|
||||
!TotalFreedomMod.getPlugin().al.isVanished(player.getUniqueId())).map(HumanEntity::getName).toList();
|
||||
!TotalFreedomMod.getPlugin().al.isVanished(player.getUniqueId())).map(HumanEntity::getName).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
public static String listToString(List<String> list)
|
||||
|
Loading…
Reference in New Issue
Block a user