Protections and Respawn Mechanics
X-SetSpawn is not just for the /spawn command. It contains automatic security measures to protect your server from spawn-kills and unfair player deaths.
๐ก๏ธ Post-Teleport Invincibility (protection)
On very heavy servers or those with many builds, the map takes a few seconds to load. If a player teleports, they could fall into a virtual void, suffocate in a ghost block, or be attacked by another player before their screen finishes loading.
protection:
enabled: true
time: 3By enabling it, the player will be completely immortal to all damage or attacks for the seconds you define right after the teleportation completes.
๐ณ๏ธ Anti-Void Fall (void-teleport)
Absolutely essential for floating worlds (Skyblock) or main Lobby maps built in the air.
If a player jumps off the island and falls, instead of dying and losing money, levels, inventory, and experiencing frustration, X-SetSpawn will act as a safety net and rescue them by teletransporting them immediately, and without damage, back to Spawn.
void-teleport:
enabled: true
height: -64Version Dependency
In Minecraft 1.18 onwards, the world limit and downward height changed to negative. You should set -64.
If you are using Minecraft 1.17 and earlier (including 1.8), the official world limit remains absolute zero. You should set 0.
๐ง Smart Respawn (smart-respawn)
In Survival, players expect to respawn in their beds if they used them, not at the global city Spawn.
By enabling smart-respawn: true in events, if the player dies, the plugin will automatically detect if they have a valid personal regeneration point (such as their interacted bed or a charged Respawn Anchor). If they do, they will teleport there. If their bed was destroyed or they never slept in one, then they will be teleported to /spawn.