Spawn protection banner
Spawn protection icon

Spawn protection

You can select area an area with command and players in combat (only pvp combat player with player combat) cant access that area. When they try to go there...

00
paperServer1.21.10mod
  • Added a spawn protection safe zone that blocks PvP-tagged players and all mobs from entering; anything stopped at the boundary is knocked back roughly 3 blocks to keep the area safe.
  • Region is defined with /spawnprotection setpos1 and /spawnprotection setpos2 (requires spawnprotection.admin); /spawnprotection info shows the current bounds and /spawnprotection clear removes them. The region is saved to the plugin config after it is set.
  • Combat tagging only triggers from player-vs-player damage, lasts 30 seconds, and is cleared on death or logout, so fighting mobs alone never blocks entry to the safe zone.
  • All creature spawns inside the protected region are cancelled, and mobs trying to enter are bounced back in the same way as combat-tagged players.
  • Player respawns are forced to (480, 64, -589) facing north after every death.
  • Limitation: the protected region must be in a single world; knockback distance is approximate and depends on in-game movement physics.

Server Validation

Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.