Advertisement
Guest User

Untitled

a guest
Apr 27th, 2013
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. ScoreboardManager manager = Bukkit.getServer().getScoreboardManager();
  2. Scoreboard board = manager.getNewScoreboard();
  3.  
  4. Objective objective = board.registerNewObjective("money", "dummy");
  5. objective.setDisplaySlot(DisplaySlot.BELOW_NAME);
  6. objective.setDisplayName("Money");
  7.  
  8. for(Player online : Bukkit.getOnlinePlayers()){
  9. Score score = objective.getScore(online);
  10. score.setScore(42);
  11. online.setScoreboard(board);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement