Minecraft server spawn problems?

Oc
- in Servers
1

My brother and i have started to create an RPG minecraft server with spigot and are currently having a problem with the respawn. We want the players to respawn in a cemetery if they don't have a bed. But no matter what we do, they always spawn in the spawn lobby. How can you fix that

un

With a self-programmed plugin.