Try and mabye do your own researche but there is already a post about this on a diffrent website
https://forums.skunity.com/threads/splitting-players-into-two-teams.6394/
So i was trying to make a modded version but the modpack i wanna install is 1.8.9 but you can only do 1.12.2 on minehut
so i was wondering if they will ever add it