Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.72 KB | None | 0 0
  1.   public List<String> getScoreboard(final Player player, final Set<BoardCooldown> set) {
  2.         ArrayList<String> lines = new ArrayList<>();
  3.         Iterator itr = set.iterator();
  4.  
  5.         lines.add("&6Balance: &f" + Teams.getInstance().getProfileManager().getProfile(player.getUniqueId()).getGold());
  6.  
  7.         if (Teams.getInstance().getSpawnManager().hasSpawnProt(player.getUniqueId()))
  8.             lines.add("&6Spawn Protected: &7true");
  9.  
  10.         if (itr.hasNext())
  11.             lines.add(" ");
  12.         while (itr.hasNext()) {
  13.             BoardCooldown cooldown = (BoardCooldown) itr.next();
  14.  
  15.             if (cooldown.getId().equalsIgnoreCase("combattag"))
  16.                 lines.add(" &6Combat Tag: &c" + cooldown.getFormattedString(BoardFormat.SECONDS));
  17.             if (cooldown.getId().equalsIgnoreCase("enderpearl"))
  18.                 lines.add(" &6Pearl: &3" + cooldown.getFormattedString(BoardFormat.SECONDS));
  19.             if (cooldown.getId().equalsIgnoreCase("spawn"))
  20.                 lines.add(" &6Spawn Warp: &e" + cooldown.getFormattedString(BoardFormat.SECONDS));
  21.             if (cooldown.getId().equalsIgnoreCase("warp"))
  22.                 lines.add(" &6Warp: &e" + cooldown.getFormattedString(BoardFormat.SECONDS));
  23.             if (cooldown.getId().equalsIgnoreCase("teamhq"))
  24.                 lines.add(" &6HQ Warp: &e" + cooldown.getFormattedString(BoardFormat.SECONDS));
  25.             if (cooldown.getId().equalsIgnoreCase("reamrally"))
  26.                 lines.add(" &6Rally Warp: &e" + cooldown.getFormattedString(BoardFormat.SECONDS));
  27.         }
  28.  
  29.         lines.add(0, "&7&m------------------");
  30.         lines.add( "&7&m------------------");
  31.         lines.add("&o&7store.dreamz.io");
  32.  
  33.         return lines;
  34.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement