Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @SuppressWarnings("deprecation")
- public static void buildScoreboard(Player p) {
- ScoreAPI scoreAPI = new ScoreAPI("§e§lHARDCORE§b§lGAMES", DisplaySlot.SIDEBAR, "§0", "§1", "§2", "§3", "§4",
- "§5", "§6", "§7");
- scoreAPI.addLine("tempo", "§6", " §7Inicia em » ", "");
- scoreAPI.addLine("kit", "§5", " §7Kit » ", "§b" + Main.getKitAPI().getKit(p).getName());
- scoreAPI.addLine("jogadores", "§3", " §7Jogadores » ", "§b" + Manager.playersOnline.size());
- scoreAPI.addLine("elo", "§2", " §7Elo » ", RanksAPI.rankString(Main.getStatus().getRank(p.getUniqueId())));
- scoreAPI.addLine("site", "§0", "§efuzion-", "§enetwork.com");
- p.setScoreboard(scoreAPI.getScoreboard());
- for (Player online : Bukkit.getOnlinePlayers()) {
- TagsAPI.loadTags(online);
- }
- }
- @SuppressWarnings("deprecation")
- public static void updatePlayers() {
- for (Player online : Bukkit.getOnlinePlayers()) {
- if (Bukkit.getOnlinePlayers().length >= 1) {
- online.getScoreboard().getTeam("jogadores").setSuffix("§b" + Manager.playersOnline.size());
- }
- }
- }
- public static void updateKills(Player p) {
- p.getScoreboard().getTeam("elo").setSuffix("§b" + Main.getMethods().getStreak(p));
- }
- public static void updateKit(Player p) {
- p.getScoreboard().getTeam("kit").setSuffix("§b" + Main.getKitAPI().getKit(p).getName());
- }
- @SuppressWarnings("deprecation")
- public static void updateTime(String estado, int time) {
- for (Player online : Bukkit.getOnlinePlayers()) {
- Scoreboard hg = online.getScoreboard();
- Team tempo = hg.getTeam("tempo");
- tempo.setSuffix("§b" + Main.getMethods().formatTimer(time));
- tempo.setPrefix(estado);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement