This is a built in Essentials feature if you have Essentials spawn, just do /setspawn newbies. However to answer your question:
on first join:
teleport player to location at x, y, z in world "world"
If your world name is anything other than "world" you'll have to change it
Edit: Also, not to mini mod but this is the wrong category lol