Untitled
Anonymous
java
05/15/2024 11:00 PM
588 B
14
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