I want to set my player's names to: Scoarboard Team Color + Player's Name + Dies on Scoarboard Heres some code, but it makes the player's name white (No Team Color or dies count) I want to do it this way instead of with all scoarboards becuase I want to add a symble before the player's name. Code:java @EventHandlerpublic void PlayerDeathEventt(PlayerDeathEvent event) {Player player = event.getEntity();ScoreboardManager manager2 = Bukkit.getScoreboardManager();Scoreboard board2 = manager2.getNewScoreboard();Objective objective2 = board2.getObjective("dies"); Team team = board2.registerNewTeam(player.getName());String color = team.getName();Score points = objective2.getScore(player);event.getEntity().setCustomName(color + player.getName() + " " + points + " Test");} Any help with this would be awesome
You have to use ChatColor.translateAlternateColorCodes so it will actually show the color. and for points you defined points as Score,