Set ClientPlayer Spawn

Hello there i want to script a plugin for my server that allows me to set the spawn of each player that is connecting.My problem is now how do i set the spawn for other players on my server?
pls help me out on this if someone ever had experience on that