Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ScoreboardManager manager = Bukkit.getServer().getScoreboardManager();
- Scoreboard board = manager.getMainScoreboard();
- Objective objective = board.registerNewObjective("money", "dummy");
- objective.setDisplaySlot(DisplaySlot.BELOW_NAME);
- objective.setDisplayName("Money");
- for(Player online : Bukkit.getOnlinePlayers()){
- Score score = objective.getScore(online);
- score.setScore(42);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement