Fixed player groups not being saved after adding/removing a secondary group.

Don't have access to the main repo, so submitting a pull request instead.