When I use
team.setColor(color);
The colour of the team is not changed. Why ?
Could you post a bit more of your code?