Guest User

Untitled

a guest
Apr 19th, 2016
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static PointsAPI points = (PointsAPI) Bukkit.getPluginManager().getPlugin("PointsAPI");
  2.  
  3. public static void setJoinboard(Player p) {
  4. int coins = points.getPoints(p);
  5. ServerSystem.score = Bukkit.getScoreboardManager().getNewScoreboard();
  6. Objective obj = ServerSystem.score.getObjective("aaa") != null ? ServerSystem.score.getObjective("aaa") : ServerSystem.score.registerNewObjective("aaa", "bbb");
  7. obj.setDisplayName ("§e✦§6 TimeGamerTV Netzwerk §e✦");
  8. obj.setDisplaySlot(DisplaySlot.SIDEBAR);
  9.  
  10. Score line1 = obj.getScore(" ");
  11. Score line2 = obj.getScore("§fCoins");
  12. Score line3 = obj.getScore("§b" + coins);
  13. Score line4 = obj.getScore(" ");
  14. Score line5 = obj.getScore("§f");
  15. Score line6 = obj.getScore("6");
  16. Score line7 = obj.getScore("7");
  17. Score line8 = obj.getScore("8");
  18. Score line9 = obj.getScore("9");
  19. Score line10 = obj.getScore("10");
  20. Score line11 = obj.getScore("11");
  21. Score line12 = obj.getScore("12");
  22. Score line13 = obj.getScore("13");
  23.  
  24.  
  25. line1.setScore(12);
  26. line2.setScore(11);
  27. line3.setScore(10);
  28. line4.setScore(9);
  29. line5.setScore(8);
  30. line6.setScore(7);
  31. line7.setScore(6);
  32. line8.setScore(5);
  33. line9.setScore(4);
  34. line10.setScore(3);
  35. line11.setScore(2);
  36. line12.setScore(1);
  37. line13.setScore(0);
  38.  
  39. p.setScoreboard(ServerSystem.score);
  40. }
RAW Paste Data