class PurgeBannedPlayersCommand implements ExecutableCommand {

    @Override
    public void executeCommand(CommandSender sender, List<String> arguments) {
        // Get the list of banned players
        Set<OfflinePlayer> bannedPlayers = bukkitService.getBannedPlayers();
        Set<String> namedBanned = new HashSet<>(bannedPlayers.size());
        for (OfflinePlayer offlinePlayer : bannedPlayers) {
            namedBanned.add(offlinePlayer.getName().toLowerCase());
        }

        purgeService.purgePlayers(sender, namedBanned, bannedPlayers.toArray(new OfflinePlayer[bannedPlayers.size()]));
    }

}