Untitled
unknown
java
2 years ago
441 B
7
Indexable
@Override
public @NotNull List<Player> getPlayersInCombat() {
Set<UUID> playerIdSet = getPlayerIdsInCombat();
List<Player> playerList = new ArrayList<>();
for (UUID playerId : playerIdSet) {
Player player = Bukkit.getPlayer(playerId);
if (player != null) {
playerList.add(player);
}
}
return Collections.unmodifiableList(playerList);
}Editor is loading...
Leave a Comment