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
objective.setDisplaySlot(DisplaySlot.SIDEBAR);
     
//Setting the display name of the scoreboard / objective
objective.setDisplayName("Display Name");

//Get a fake offline player
Score score = objective.getScore(ChatColor.GREEN + "Kills:"); 
score.setScore(1);