Vinetos

ScoreboardUtils

Nov 28th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. private static Scoreboard s;
  2. private ScoreboardManager sm;
  3.  
  4. private static Objective base;
  5. private static Score manche;
  6.  
  7. public ScoreboardUtils(ScoreboardManager sm){
  8. this.sm = sm;
  9. this.s = sm.getNewScoreboard();
  10. base = s.registerNewObjective("§aEn attente","dummy");
  11. base.setDisplaySlot(DisplaySlot.SIDEBAR);
  12. manche = base.getScore(Bukkit.getOfflinePlayer("§7============"));
  13. manche.setScore(70);
  14. }
  15.  
  16. public static Scoreboard getScoreboard(){
  17. return s;
  18. }
  19.  
  20. public static Objective getBaseObjective(){
  21. return base;
  22. }
  23.  
  24. public static Score getScore(){
  25. return manche;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment