Replicate all flags of the team (collisionRule, color, deathMessageVisibility, friendlyFire, nametagVisibility, seeFriendlyInvisibles, prefix, suffix)
Included the playerName to the team name only in case it has been assigned to a team of the main scoreboard to avoid conflicts with global team (if no team assigned then it will go on the global sorted team)
Fixed missing team color when prefix and suffix are applied