
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 setpos1and/spawnprotection setpos2(requiresspawnprotection.admin);/spawnprotection infoshows the current bounds and/spawnprotection clearremoves 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.