daily pastebin goal
65%
SHARE
TWEET

gfgf

a guest Jan 12th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     @SuppressWarnings("deprecation")
  2.     public static void buildScoreboard(Player p) {
  3.         ScoreAPI scoreAPI = new ScoreAPI("§e§lHARDCORE§b§lGAMES", DisplaySlot.SIDEBAR, "§0", "§1", "§2", "§3", "§4",
  4.                 "§5", "§6", "§7");
  5.  
  6.         scoreAPI.addLine("tempo", "§6", " §7Inicia em » ", "");
  7.         scoreAPI.addLine("kit", "§5", " §7Kit » ", "§b" + Main.getKitAPI().getKit(p).getName());
  8.         scoreAPI.addLine("jogadores", "§3", " §7Jogadores » ", "§b" + Manager.playersOnline.size());
  9.         scoreAPI.addLine("elo", "§2", " §7Elo » ", RanksAPI.rankString(Main.getStatus().getRank(p.getUniqueId())));
  10.         scoreAPI.addLine("site", "§0", "§efuzion-", "§enetwork.com");
  11.  
  12.         p.setScoreboard(scoreAPI.getScoreboard());
  13.         for (Player online : Bukkit.getOnlinePlayers()) {
  14.             TagsAPI.loadTags(online);
  15.         }
  16.     }
  17.  
  18.     @SuppressWarnings("deprecation")
  19.     public static void updatePlayers() {
  20.         for (Player online : Bukkit.getOnlinePlayers()) {
  21.             if (Bukkit.getOnlinePlayers().length >= 1) {
  22.                 online.getScoreboard().getTeam("jogadores").setSuffix("§b" + Manager.playersOnline.size());
  23.             }
  24.         }
  25.     }
  26.  
  27.     public static void updateKills(Player p) {
  28.         p.getScoreboard().getTeam("elo").setSuffix("§b" + Main.getMethods().getStreak(p));
  29.     }
  30.  
  31.     public static void updateKit(Player p) {
  32.         p.getScoreboard().getTeam("kit").setSuffix("§b" + Main.getKitAPI().getKit(p).getName());
  33.     }
  34.  
  35.     @SuppressWarnings("deprecation")
  36.     public static void updateTime(String estado, int time) {
  37.         for (Player online : Bukkit.getOnlinePlayers()) {
  38.             Scoreboard hg = online.getScoreboard();
  39.             Team tempo = hg.getTeam("tempo");
  40.             tempo.setSuffix("§b" + Main.getMethods().formatTimer(time));
  41.             tempo.setPrefix(estado);
  42.         }
  43.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top