Hypixel has a lot of command for play bedwars or sk, with a command packet you can automalty get send to another game and idk how to detect the end of a game (;
solo: /play bedwars_eight_one
2v2: /play bedwars_eight_two
3v3: /play bedwars_four_three
4v4: /play bedwars_four_four
/skywars solo
/skywars team
/skywars team2
/skywars team3
solo: /play bedwars_eight_one
2v2: /play bedwars_eight_two
3v3: /play bedwars_four_three
4v4: /play bedwars_four_four
/skywars solo
/skywars team
/skywars team2
/skywars team3