@Override public Set<OfflinePlayer> getBannedPlayers() { Set<OfflinePlayer> bannedPlayers = new HashSet<>(); for (BanEntry entry : nameBans.getBanEntries()) { bannedPlayers.add(getOfflinePlayer(entry.getTarget())); } return bannedPlayers; }
@Override public Set<String> getIPBans() { Set<String> result = new HashSet<>(); for (BanEntry entry : ipBans.getBanEntries()) { result.add(entry.getTarget()); } return result; }