Bukkit scoreboard

ScoreboardManager manager = Bukkit.getScoreboardManager();
Scoreboard board = manager.getNewScoreboard();
Objective objective = board.registerNewObjective("Joe", "Root");

//Setting where to display the scoreboard / objective 
// This can be either SIDEBAR, PLAYER_LIST or BELOW_NAME
//Setting the display name of the scoreboard / objective
objective.setDisplayName("Display Name");

//Get a fake offline player
Score score = objective.getScore(ChatColor.GREEN + "Kills:"); 
Please follow and like us:
Content Protection by DMCA.com