Advertisement
riking

Untitled

Apr 27th, 2013
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ScoreboardManager manager = Bukkit.getServer().getScoreboardManager();
  2. Scoreboard board = manager.getMainScoreboard();
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement