Normally when a player sleeps it shows the '{name} is now sleeping.' message, however, when a player is has a coloured name because they are part of a team, their name does not show, but instead ' is now sleeping' only appears.
Reproduce:
(Join a team)
/team add test
/team modify test color aqua
/team join test @s
(Set time to night and place a bed)
/time set night
/give @s minecraft:black_bed
You will now see the ' is now sleeping.' message without a player name.
Normally when a player sleeps it shows the '{name} is now sleeping.' message, however, when a player is has a coloured name because they are part of a team, their name does not show, but instead ' is now sleeping' only appears.
Reproduce:
(Join a team)
/team add test
/team modify test color aqua
/team join test @s
(Set time to night and place a bed)
/time set night
/give @s minecraft:black_bed
You will now see the ' is now sleeping.' message without a player name.