Sorting teams for Adventure game

Hey guys. I’m looking for a package that does the following:
I want players to be able to touch an object, after which they get sorted in one of 4 teams. They will remain sorted in these teams for a certain period, even when they log out and log back in again. The period should be something fixed like 3 months for instance. Each time should have about the same amount of players.
Is this something someone could make?

This sounds interesting and should be possible!

If anyone could still look into this, that would be great!