This is a very simple and lightweight plugin that I threw together in a few minutes to help a player in the forums.
You can set
group-specific spawnpoints with "
/groupsawn setspawn {groupname}", then assign a player the permission groupspawn.group.{name}. If they execute /spawn, they'll be sent to that groups spawn (if applicable).
Please also make sure to configure the correct group-assignments in config.yml
This plugin is very niche and can probably be replaced with a more sophisticated system from something like CMI if wanted but I felt like sharing this anyway.
Its compiled for 1.20.x but should natively support 1.21.x aswell