Basically, I'm making like a village / towns server. And for the spawn, I just made a simple room hidden somewhere in the world. And it has command blocks that warp you to different towns. It's all running smooth and all, but there's one major problem: They die, they go back there. So, is it possible, that, with the commandblocks, after they warp you to where you want to be, it saves a spawn, relative to you? If so, can someone make a simple plugin with a command that works with command blocks? Thanks.
This sounds like something WorldGuard already achieves. (You can set different respawn points for different regions). You should check it out.