How to have a set amount of players per area?

Hello, I was wondering if it’s possible to teleport players to a different Island where they then can battle against each other. This island should contain 8 players. So far so good. But when the maximum limit of 8 players is reached I want to make it so that another set of 8 Players can play on this Island. Help would be greatly appreciated! I hope this is possible.