Text format won't go bold in join/leave message

I am verry new to making plugins and as one of my first projects, I decided to make a plugin that customizes the join and leave messages (PlayerJoinEvent/PlayerQuitEvent). I changed the joinmessage using event.setJoinMessage("§format" + playerName + "message.") But when I formatted it to be bold, it simply wouldn’t go bold wehn I tested it. (I used Minecraft’s vanilla formatting codes (/color codes).

event.setJoinMessage(ChatColor.translateAlternateColorCodes('&', String.format("&a&l%s joined", playerName)))

First color, sec &l or &o etc

&a&lHello, &c&nWorld!

1 Like