Search in sources :

Example 1 with LeaderboardCategory

use of com.ebicep.warlords.database.leaderboards.sections.LeaderboardCategory in project Warlords by ebicep.

the class LeaderboardManager method getLeaderboardCategoryFromPlayer.

public static LeaderboardCategory<?> getLeaderboardCategoryFromPlayer(Player player) {
    if (!Warlords.holographicDisplaysEnabled)
        return null;
    if (!playerLeaderboardGameType.containsKey(player.getUniqueId()) || playerLeaderboardGameType.get(player.getUniqueId()) == null) {
        playerLeaderboardGameType.put(player.getUniqueId(), GameType.ALL);
    }
    if (!playerLeaderboardCategory.containsKey(player.getUniqueId()) || playerLeaderboardCategory.get(player.getUniqueId()) == null) {
        playerLeaderboardCategory.put(player.getUniqueId(), Category.ALL);
    }
    GameType selectedGameType = playerLeaderboardGameType.get(player.getUniqueId());
    Category selectedCategory = playerLeaderboardCategory.get(player.getUniqueId());
    if (selectedGameType == GameType.ALL) {
        if (selectedCategory == Category.ALL) {
            return leaderboardGeneral.getGeneral();
        } else if (selectedCategory == Category.COMPS) {
            return leaderboardGeneral.getComps();
        } else {
            return leaderboardGeneral.getPubs();
        }
    } else {
        if (selectedCategory == Category.ALL) {
            return leaderboardCTF.getGeneral();
        } else if (selectedCategory == Category.COMPS) {
            return leaderboardCTF.getComps();
        } else {
            return leaderboardCTF.getPubs();
        }
    }
}
Also used : LeaderboardCategory(com.ebicep.warlords.database.leaderboards.sections.LeaderboardCategory)

Example 2 with LeaderboardCategory

use of com.ebicep.warlords.database.leaderboards.sections.LeaderboardCategory in project Warlords by ebicep.

the class LeaderboardCTF method addExtraLeaderboards.

@Override
public void addExtraLeaderboards(LeaderboardCategory<DatabasePlayerCTF> leaderboardCategory) {
    List<Leaderboard> leaderboards = leaderboardCategory.getLeaderboards();
    leaderboards.add(new Leaderboard("Flags Captured", new Location(world, -2540.5, 56, 712.5), databasePlayer -> leaderboardCategory.statFunction.apply(databasePlayer).getFlagsCaptured(), databasePlayer -> NumberFormat.addCommaAndRound(leaderboardCategory.statFunction.apply(databasePlayer).getFlagsCaptured())));
    leaderboards.add(new Leaderboard("Flags Returned", new Location(world, -2608.5, 52, 737.5), databasePlayer -> leaderboardCategory.statFunction.apply(databasePlayer).getFlagsReturned(), databasePlayer -> NumberFormat.addCommaAndRound(leaderboardCategory.statFunction.apply(databasePlayer).getFlagsReturned())));
    leaderboards.add(new Leaderboard("Mage Experience", new Location(world, -2523.5, 58, 734.5), databasePlayer -> leaderboardCategory.statFunction.apply(databasePlayer).getMage().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(leaderboardCategory.statFunction.apply(databasePlayer).getMage().getExperience())));
    leaderboards.add(new Leaderboard("Warrior Experience", new Location(world, -2520.5, 58, 739.5), databasePlayer -> leaderboardCategory.statFunction.apply(databasePlayer).getWarrior().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(leaderboardCategory.statFunction.apply(databasePlayer).getWarrior().getExperience())));
    leaderboards.add(new Leaderboard("Paladin Experience", new Location(world, -2516.5, 58, 744.5), databasePlayer -> leaderboardCategory.statFunction.apply(databasePlayer).getPaladin().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(leaderboardCategory.statFunction.apply(databasePlayer).getPaladin().getExperience())));
    leaderboards.add(new Leaderboard("Shaman Experience", new Location(world, -2520.5, 58, 749.5), databasePlayer -> leaderboardCategory.statFunction.apply(databasePlayer).getShaman().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(leaderboardCategory.statFunction.apply(databasePlayer).getShaman().getExperience())));
    leaderboards.add(new Leaderboard("Rogue Experience", new Location(world, -2523.5, 58, 754.5), databasePlayer -> leaderboardCategory.statFunction.apply(databasePlayer).getRogue().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(leaderboardCategory.statFunction.apply(databasePlayer).getRogue().getExperience())));
}
Also used : DatabasePlayerCTF(com.ebicep.warlords.database.repositories.player.pojos.ctf.DatabasePlayerCTF) List(java.util.List) Location(org.bukkit.Location) LeaderboardGameType(com.ebicep.warlords.database.leaderboards.sections.LeaderboardGameType) LeaderboardCategory(com.ebicep.warlords.database.leaderboards.sections.LeaderboardCategory) DatabasePlayer(com.ebicep.warlords.database.repositories.player.pojos.general.DatabasePlayer) NumberFormat(com.ebicep.warlords.util.java.NumberFormat) Leaderboard(com.ebicep.warlords.database.leaderboards.Leaderboard) Leaderboard(com.ebicep.warlords.database.leaderboards.Leaderboard) Location(org.bukkit.Location)

Example 3 with LeaderboardCategory

use of com.ebicep.warlords.database.leaderboards.sections.LeaderboardCategory in project Warlords by ebicep.

the class LeaderboardGeneral method addExtraLeaderboards.

@Override
public void addExtraLeaderboards(LeaderboardCategory<AbstractDatabaseStatInformation> leaderboardCategory) {
    List<Leaderboard> leaderboards = leaderboardCategory.getLeaderboards();
    Class<?> databasePlayerClass = leaderboardCategory.statFunction.apply(new DatabasePlayer()).getClass();
    if (DatabasePlayer.class.equals(databasePlayerClass)) {
        leaderboards.add(new Leaderboard("Mage Experience", new Location(world, -2523.5, 58, 734.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayer.class).getMage().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayer.class).getMage().getExperience())));
        leaderboards.add(new Leaderboard("Warrior Experience", new Location(world, -2520.5, 58, 739.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayer.class).getWarrior().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayer.class).getWarrior().getExperience())));
        leaderboards.add(new Leaderboard("Paladin Experience", new Location(world, -2516.5, 58, 744.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayer.class).getPaladin().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayer.class).getPaladin().getExperience())));
        leaderboards.add(new Leaderboard("Shaman Experience", new Location(world, -2520.5, 58, 749.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayer.class).getShaman().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayer.class).getShaman().getExperience())));
        leaderboards.add(new Leaderboard("Rogue Experience", new Location(world, -2523.5, 58, 754.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayer.class).getRogue().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayer.class).getRogue().getExperience())));
    } else if (DatabasePlayerCompStats.class.equals(databasePlayerClass)) {
        leaderboards.add(new Leaderboard("Mage Experience", new Location(world, -2523.5, 58, 734.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerCompStats.class).getMage().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerCompStats.class).getMage().getExperience())));
        leaderboards.add(new Leaderboard("Warrior Experience", new Location(world, -2520.5, 58, 739.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerCompStats.class).getWarrior().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerCompStats.class).getWarrior().getExperience())));
        leaderboards.add(new Leaderboard("Paladin Experience", new Location(world, -2516.5, 58, 744.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerCompStats.class).getPaladin().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerCompStats.class).getPaladin().getExperience())));
        leaderboards.add(new Leaderboard("Shaman Experience", new Location(world, -2520.5, 58, 749.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerCompStats.class).getShaman().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerCompStats.class).getShaman().getExperience())));
        leaderboards.add(new Leaderboard("Rogue Experience", new Location(world, -2523.5, 58, 754.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerCompStats.class).getRogue().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerCompStats.class).getRogue().getExperience())));
    } else if (DatabasePlayerPubStats.class.equals(databasePlayerClass)) {
        leaderboards.add(new Leaderboard("Mage Experience", new Location(world, -2523.5, 58, 734.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerPubStats.class).getMage().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerPubStats.class).getMage().getExperience())));
        leaderboards.add(new Leaderboard("Warrior Experience", new Location(world, -2520.5, 58, 739.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerPubStats.class).getWarrior().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerPubStats.class).getWarrior().getExperience())));
        leaderboards.add(new Leaderboard("Paladin Experience", new Location(world, -2516.5, 58, 744.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerPubStats.class).getPaladin().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerPubStats.class).getPaladin().getExperience())));
        leaderboards.add(new Leaderboard("Shaman Experience", new Location(world, -2520.5, 58, 749.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerPubStats.class).getShaman().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerPubStats.class).getShaman().getExperience())));
        leaderboards.add(new Leaderboard("Rogue Experience", new Location(world, -2523.5, 58, 754.5), databasePlayer -> applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerPubStats.class).getRogue().getExperience(), databasePlayer -> NumberFormat.addCommaAndRound(applyAndCast(leaderboardCategory, databasePlayer, DatabasePlayerPubStats.class).getRogue().getExperience())));
    }
}
Also used : List(java.util.List) Location(org.bukkit.Location) AbstractDatabaseStatInformation(com.ebicep.warlords.database.repositories.player.pojos.AbstractDatabaseStatInformation) LeaderboardGameType(com.ebicep.warlords.database.leaderboards.sections.LeaderboardGameType) DatabasePlayerCompStats(com.ebicep.warlords.database.repositories.player.pojos.general.DatabasePlayerCompStats) LeaderboardCategory(com.ebicep.warlords.database.leaderboards.sections.LeaderboardCategory) DatabasePlayer(com.ebicep.warlords.database.repositories.player.pojos.general.DatabasePlayer) NumberFormat(com.ebicep.warlords.util.java.NumberFormat) Leaderboard(com.ebicep.warlords.database.leaderboards.Leaderboard) DatabasePlayerPubStats(com.ebicep.warlords.database.repositories.player.pojos.general.DatabasePlayerPubStats) Leaderboard(com.ebicep.warlords.database.leaderboards.Leaderboard) DatabasePlayerCompStats(com.ebicep.warlords.database.repositories.player.pojos.general.DatabasePlayerCompStats) DatabasePlayerPubStats(com.ebicep.warlords.database.repositories.player.pojos.general.DatabasePlayerPubStats) DatabasePlayer(com.ebicep.warlords.database.repositories.player.pojos.general.DatabasePlayer) Location(org.bukkit.Location)

Example 4 with LeaderboardCategory

use of com.ebicep.warlords.database.leaderboards.sections.LeaderboardCategory in project Warlords by ebicep.

the class CustomScoreboard method giveMainLobbyScoreboard.

public void giveMainLobbyScoreboard() {
    if (scoreboard.getObjective("health") != null) {
        scoreboard.getObjective("health").unregister();
        health = null;
    }
    for (Player onlinePlayer : Bukkit.getOnlinePlayers()) {
        for (Team team : scoreboard.getTeams()) {
            if (team.getName().equals(onlinePlayer.getName())) {
                team.unregister();
                break;
            }
        }
    }
    if (loaded) {
        LeaderboardCategory<?> leaderboardCategory = getLeaderboardCategoryFromPlayer(player);
        if (leaderboardCategory == null)
            return;
        Leaderboard leaderboard = leaderboardCategory.leaderboards.get(0);
        List<DatabasePlayer> databasePlayerList;
        switch(playerLeaderboardTime.getOrDefault(player.getUniqueId(), PlayersCollections.LIFETIME)) {
            case LIFETIME:
                databasePlayerList = leaderboard.getSortedAllTime();
                break;
            case SEASON_5:
                databasePlayerList = leaderboard.getSortedSeason5();
                break;
            case SEASON_4:
                databasePlayerList = leaderboard.getSortedSeason4();
                break;
            case WEEKLY:
                databasePlayerList = leaderboard.getSortedWeekly();
                break;
            case DAILY:
                databasePlayerList = leaderboard.getSortedDaily();
                break;
            default:
                databasePlayerList = leaderboard.getSortedAllTime();
                break;
        }
        LeaderboardManager.GameType selectedType = playerLeaderboardGameType.get(player.getUniqueId());
        LeaderboardManager.Category selectedCategory = playerLeaderboardCategory.get(player.getUniqueId());
        PlayersCollections selectedCollection = playerLeaderboardTime.get(player.getUniqueId());
        if (selectedType == null)
            selectedType = GameType.ALL;
        if (selectedCollection == null)
            selectedCategory = Category.ALL;
        if (selectedCollection == null)
            selectedCollection = PlayersCollections.LIFETIME;
        String scoreboardSelection = "";
        if (!selectedType.shortName.isEmpty()) {
            scoreboardSelection += selectedType.shortName + "/";
        }
        if (!selectedCategory.shortName.isEmpty()) {
            scoreboardSelection += selectedCategory.shortName + "/";
        }
        scoreboardSelection += selectedCollection.name;
        Optional<DatabasePlayer> optionalDatabasePlayer = databasePlayerList.stream().filter(databasePlayer -> databasePlayer.getUuid().equalsIgnoreCase(player.getUniqueId().toString())).findAny();
        if (optionalDatabasePlayer.isPresent()) {
            DatabasePlayer databasePlayer = optionalDatabasePlayer.get();
            AbstractDatabaseStatInformation playerInformation = leaderboardCategory.statFunction.apply(databasePlayer);
            giveNewSideBar(true, ChatColor.GRAY + scoreboardSelection, "", "Kills: " + ChatColor.GREEN + NumberFormat.addCommaAndRound(playerInformation.getKills()), "Assists: " + ChatColor.GREEN + NumberFormat.addCommaAndRound(playerInformation.getAssists()), "Deaths: " + ChatColor.GREEN + NumberFormat.addCommaAndRound(playerInformation.getDeaths()), " " + "", "Wins: " + ChatColor.GREEN + NumberFormat.addCommaAndRound(playerInformation.getWins()), "Losses: " + ChatColor.GREEN + NumberFormat.addCommaAndRound(playerInformation.getLosses()), "  " + "", "Damage: " + ChatColor.RED + NumberFormat.addCommaAndRound(playerInformation.getDamage()), "Healing: " + ChatColor.DARK_GREEN + NumberFormat.addCommaAndRound(playerInformation.getHealing()), "Absorbed: " + ChatColor.GOLD + NumberFormat.addCommaAndRound(playerInformation.getAbsorbed()), "    ", "            " + ChatColor.YELLOW + ChatColor.BOLD + "Update", "     " + ChatColor.GOLD + ChatColor.BOLD + Warlords.VERSION);
        }
        return;
    }
    if (DatabaseManager.playerService == null) {
        clearSideBar();
        return;
    }
    DatabasePlayer databasePlayer = DatabaseManager.playerService.findByUUID(player.getUniqueId());
    giveNewSideBar(true, ChatColor.GRAY + "Lifetime", " ", "Kills: " + ChatColor.GREEN + NumberFormat.addCommaAndRound(databasePlayer.getKills()), "Assists: " + ChatColor.GREEN + NumberFormat.addCommaAndRound(databasePlayer.getAssists()), "Deaths: " + ChatColor.GREEN + NumberFormat.addCommaAndRound(databasePlayer.getDeaths()), " " + "", "Wins: " + ChatColor.GREEN + NumberFormat.addCommaAndRound(databasePlayer.getWins()), "Losses: " + ChatColor.GREEN + NumberFormat.addCommaAndRound(databasePlayer.getLosses()), "  " + "", "Damage: " + ChatColor.RED + NumberFormat.addCommaAndRound(databasePlayer.getDamage()), "Healing: " + ChatColor.DARK_GREEN + NumberFormat.addCommaAndRound(databasePlayer.getHealing()), "Absorbed: " + ChatColor.GOLD + NumberFormat.addCommaAndRound(databasePlayer.getAbsorbed()), "    ", "            " + ChatColor.YELLOW + ChatColor.BOLD + "Update", "     " + ChatColor.GOLD + ChatColor.BOLD + Warlords.VERSION);
}
Also used : Warlords(com.ebicep.warlords.Warlords) DatabaseManager(com.ebicep.warlords.database.DatabaseManager) Player(org.bukkit.entity.Player) LeaderboardCategory(com.ebicep.warlords.database.leaderboards.sections.LeaderboardCategory) DatabasePlayer(com.ebicep.warlords.database.repositories.player.pojos.general.DatabasePlayer) NumberFormat(com.ebicep.warlords.util.java.NumberFormat) PlayersCollections(com.ebicep.warlords.database.repositories.player.PlayersCollections) List(java.util.List) AbstractDatabaseStatInformation(com.ebicep.warlords.database.repositories.player.pojos.AbstractDatabaseStatInformation) LeaderboardManager(com.ebicep.warlords.database.leaderboards.LeaderboardManager) Optional(java.util.Optional) ChatColor(org.bukkit.ChatColor) org.bukkit.scoreboard(org.bukkit.scoreboard) Leaderboard(com.ebicep.warlords.database.leaderboards.Leaderboard) Bukkit(org.bukkit.Bukkit) Player(org.bukkit.entity.Player) DatabasePlayer(com.ebicep.warlords.database.repositories.player.pojos.general.DatabasePlayer) Leaderboard(com.ebicep.warlords.database.leaderboards.Leaderboard) LeaderboardManager(com.ebicep.warlords.database.leaderboards.LeaderboardManager) PlayersCollections(com.ebicep.warlords.database.repositories.player.PlayersCollections) AbstractDatabaseStatInformation(com.ebicep.warlords.database.repositories.player.pojos.AbstractDatabaseStatInformation) DatabasePlayer(com.ebicep.warlords.database.repositories.player.pojos.general.DatabasePlayer)

Example 5 with LeaderboardCategory

use of com.ebicep.warlords.database.leaderboards.sections.LeaderboardCategory in project Warlords by ebicep.

the class LeaderboardManager method setLeaderboardHologramVisibility.

public static void setLeaderboardHologramVisibility(Player player) {
    if (!Warlords.holographicDisplaysEnabled)
        return;
    if (!playerLeaderboardTime.containsKey(player.getUniqueId()) || playerLeaderboardTime.get(player.getUniqueId()) == null) {
        playerLeaderboardTime.put(player.getUniqueId(), PlayersCollections.LIFETIME);
    }
    PlayersCollections selectedTime = playerLeaderboardTime.get(player.getUniqueId());
    LeaderboardCategory<?> leaderboardCategory = getLeaderboardCategoryFromPlayer(player);
    getAllLeaderboardCategories().forEach(category -> {
        category.getAllHolograms().forEach(hologram -> hologram.getVisibilitySettings().setIndividualVisibility(player, VisibilitySettings.Visibility.HIDDEN));
    });
    assert leaderboardCategory != null;
    if (selectedTime == PlayersCollections.LIFETIME) {
        leaderboardCategory.getLifeTimeHolograms().forEach(hologram -> hologram.getVisibilitySettings().setIndividualVisibility(player, VisibilitySettings.Visibility.VISIBLE));
    } else if (selectedTime == PlayersCollections.SEASON_5) {
        leaderboardCategory.getSeason5Holograms().forEach(hologram -> hologram.getVisibilitySettings().setIndividualVisibility(player, VisibilitySettings.Visibility.VISIBLE));
    } else if (selectedTime == PlayersCollections.SEASON_4) {
        leaderboardCategory.getSeason4Holograms().forEach(hologram -> hologram.getVisibilitySettings().setIndividualVisibility(player, VisibilitySettings.Visibility.VISIBLE));
    } else if (selectedTime == PlayersCollections.WEEKLY) {
        leaderboardCategory.getWeeklyHolograms().forEach(hologram -> hologram.getVisibilitySettings().setIndividualVisibility(player, VisibilitySettings.Visibility.VISIBLE));
    } else {
        leaderboardCategory.getDailyHolograms().forEach(hologram -> hologram.getVisibilitySettings().setIndividualVisibility(player, VisibilitySettings.Visibility.VISIBLE));
    }
    if (Warlords.playerScoreboards.containsKey(player.getUniqueId())) {
        Warlords.playerScoreboards.get(player.getUniqueId()).giveMainLobbyScoreboard();
    }
    createLeaderboardSwitcherHologram(player);
    addPlayerPositionLeaderboards(player);
}
Also used : Document(org.bson.Document) java.util(java.util) DatabaseManager(com.ebicep.warlords.database.DatabaseManager) Player(org.bukkit.entity.Player) LeaderboardCategory(com.ebicep.warlords.database.leaderboards.sections.LeaderboardCategory) DatabaseGameBase(com.ebicep.warlords.database.repositories.games.pojos.DatabaseGameBase) DatabasePlayer(com.ebicep.warlords.database.repositories.player.pojos.general.DatabasePlayer) LeaderboardCTF(com.ebicep.warlords.database.leaderboards.sections.subsections.LeaderboardCTF) Location(org.bukkit.Location) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) World(org.bukkit.World) HolographicDisplaysAPI(me.filoghost.holographicdisplays.api.beta.HolographicDisplaysAPI) Bukkit(org.bukkit.Bukkit) BukkitRunnable(org.bukkit.scheduler.BukkitRunnable) Warlords(com.ebicep.warlords.Warlords) Hologram(me.filoghost.holographicdisplays.api.beta.hologram.Hologram) SRCalculator(com.ebicep.warlords.sr.SRCalculator) VisibilitySettings(me.filoghost.holographicdisplays.api.beta.hologram.VisibilitySettings) Collectors(java.util.stream.Collectors) PlayersCollections(com.ebicep.warlords.database.repositories.player.PlayersCollections) LeaderboardGeneral(com.ebicep.warlords.database.leaderboards.sections.subsections.LeaderboardGeneral) Stream(java.util.stream.Stream) NPCManager(com.ebicep.customentities.npc.NPCManager) LocationBuilder(com.ebicep.warlords.util.bukkit.LocationBuilder) ChatColor(org.bukkit.ChatColor) PlayersCollections(com.ebicep.warlords.database.repositories.player.PlayersCollections)

Aggregations

LeaderboardCategory (com.ebicep.warlords.database.leaderboards.sections.LeaderboardCategory)5 DatabasePlayer (com.ebicep.warlords.database.repositories.player.pojos.general.DatabasePlayer)4 Leaderboard (com.ebicep.warlords.database.leaderboards.Leaderboard)3 NumberFormat (com.ebicep.warlords.util.java.NumberFormat)3 List (java.util.List)3 Location (org.bukkit.Location)3 Warlords (com.ebicep.warlords.Warlords)2 DatabaseManager (com.ebicep.warlords.database.DatabaseManager)2 LeaderboardGameType (com.ebicep.warlords.database.leaderboards.sections.LeaderboardGameType)2 PlayersCollections (com.ebicep.warlords.database.repositories.player.PlayersCollections)2 AbstractDatabaseStatInformation (com.ebicep.warlords.database.repositories.player.pojos.AbstractDatabaseStatInformation)2 Bukkit (org.bukkit.Bukkit)2 ChatColor (org.bukkit.ChatColor)2 Player (org.bukkit.entity.Player)2 NPCManager (com.ebicep.customentities.npc.NPCManager)1 LeaderboardManager (com.ebicep.warlords.database.leaderboards.LeaderboardManager)1 LeaderboardCTF (com.ebicep.warlords.database.leaderboards.sections.subsections.LeaderboardCTF)1 LeaderboardGeneral (com.ebicep.warlords.database.leaderboards.sections.subsections.LeaderboardGeneral)1 DatabaseGameBase (com.ebicep.warlords.database.repositories.games.pojos.DatabaseGameBase)1 DatabasePlayerCTF (com.ebicep.warlords.database.repositories.player.pojos.ctf.DatabasePlayerCTF)1