Overview
PvPBarrier is a Minecraft server plugin (designed for version 1.21 with Paper/Spigot) whose main purpose is to prevent players from escaping combat by hiding in safe zones (Safezones).
It works by creating “invisible barriers” in specific regions that essentially push players back if they are in the middle of a fight (Combat Tag).
Main Features
Combat Tag System:
- Automatically detects when two players hit each other.
- Applies a combat timer (20 seconds by default).
- Ignores NPC hits or non-direct combat projectiles (such as Ender Pearls).
Knockback Barrier System:
- If a player in combat tries to enter a protected region (such as Spawn), the plugin pushes them back.
- Smart physics: calculates push strength depending on whether the player is walking or sprinting, with configurable horizontal force and vertical lift values.
- Calculates the shortest exit vector to immediately expel the player from the region.
Anti-Evasion System:
- Teleport blocking: prevents the use of Ender Pearls and Chorus Fruits if the player is in combat or attempts to teleport in or out of a barrier.
- Sends visual alerts (on-screen titles) warning: “
RESTRICTION
”.
Region Management:
- Custom region system (independent from WorldGuard).
- Selection tool (Golden Axe by default) to mark Pos1 and Pos2 points.
- Commands to easily create, edit, and delete regions.
In-Game Configuration (GUI):
- Includes an interactive menu (/pvpbarrier menu) to adjust push forces and combat time without restarting the server or manually editing files.
Optimization (Performance):
- Highly optimized for servers with many players.
- Uses ConcurrentHashMap for thread-safe management.
- World-based region caching to avoid unnecessary iterations.
- Lightweight movement checks (ignores camera-only movements).
Main Commands
- /pvpbarrier wand — gives you the selection tool.
- /pvpbarrier create <name> — creates a region with the current selection.
- /pvpbarrier menu — opens the GUI configuration panel.
- /pvpbarrier list — displays active regions.
Author: Cristóbal Colón
API Version: 1.21
It is an ideal solution for Survival, Factions, or BoxPvP servers where fair gameplay is important and preventing players from running to spawn to avoid death is a priority.
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta
