Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public List<String> getScoreboard(final Player player, final Set<BoardCooldown> set) {
- ArrayList<String> lines = new ArrayList<>();
- Iterator itr = set.iterator();
- lines.add("&6Balance: &f" + Teams.getInstance().getProfileManager().getProfile(player.getUniqueId()).getGold());
- if (Teams.getInstance().getSpawnManager().hasSpawnProt(player.getUniqueId()))
- lines.add("&6Spawn Protected: &7true");
- if (itr.hasNext())
- lines.add(" ");
- while (itr.hasNext()) {
- BoardCooldown cooldown = (BoardCooldown) itr.next();
- if (cooldown.getId().equalsIgnoreCase("combattag"))
- lines.add(" &6Combat Tag: &c" + cooldown.getFormattedString(BoardFormat.SECONDS));
- if (cooldown.getId().equalsIgnoreCase("enderpearl"))
- lines.add(" &6Pearl: &3" + cooldown.getFormattedString(BoardFormat.SECONDS));
- if (cooldown.getId().equalsIgnoreCase("spawn"))
- lines.add(" &6Spawn Warp: &e" + cooldown.getFormattedString(BoardFormat.SECONDS));
- if (cooldown.getId().equalsIgnoreCase("warp"))
- lines.add(" &6Warp: &e" + cooldown.getFormattedString(BoardFormat.SECONDS));
- if (cooldown.getId().equalsIgnoreCase("teamhq"))
- lines.add(" &6HQ Warp: &e" + cooldown.getFormattedString(BoardFormat.SECONDS));
- if (cooldown.getId().equalsIgnoreCase("reamrally"))
- lines.add(" &6Rally Warp: &e" + cooldown.getFormattedString(BoardFormat.SECONDS));
- }
- lines.add(0, "&7&m------------------");
- lines.add( "&7&m------------------");
- lines.add("&o&7store.dreamz.io");
- return lines;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement