Simple and useful. With readmemory get the current team of player. Now with configure plugin let the player select in what channel have to be switched based on team. And allow the autoswitching only if player have joined on one of the two channel.
This only makes sense if you're on a murmur server with the same people you're playing with, and then it's a lot cleaner to do this serverside.