
OnePVP
Functional and lightweight PVP plug for servers with Purpur/Paper technology... Maximum lightness, with immense functionality and more.
Список изменений
🔧 Fixes & Improvements Implemented 🐛 Fixed Bug — /pvp on/off Was Not Properly Blocking Damage
Cause: The canAttack() method in the PvpManager contained incorrect logic. When Global PvP was set to false, it could still return true based solely on individual PvP flags, and the global state setter was not being applied correctly in certain execution paths.
Fix: The canAttack() logic has been completely rewritten and clarified to ensure PvP checks behave consistently in every situation.
✅ Separate /pvp on and /pvp off Commands
PvP control is now more intuitive:
/pvp on → Enables your PvP. If already enabled: "Your PvP is already enabled!" /pvp off → Disables your PvP. If already disabled: "Your PvP is already disabled!" /pvp → Keeps the original toggle behavior. 🛡️ New Players Join Protected by Default pvp: default-enabled: false # New players start with PvP disabled new-player-protection: 300 # 5 minutes of full protection New players automatically receive temporary protection. Prevents spawn killing and improves the new player experience. Fully configurable through the configuration file. ⚔️ Automatic PvP Activation on Damage (Disabled by Default) pvp: activate-on-damage: false # Enable for aggressive PvP servers When enabled, receiving or dealing damage automatically activates PvP. Ideal for hardcore and fully competitive environments. Disabled by default for greater player control. 🌐 Global PvP — Highest Priority Lock (Operators Only) pvp-global: respect-individual-pvp: false allow-toggle-during-global: false When Global PvP is enabled, it overrides individual PvP settings. Players cannot use /pvp on or /pvp off while Global PvP is active. Only server operators can disable it using: /pvpglobal off
Message shown to players:
"Global PvP is currently enabled! Only an operator can change it using /pvpglobal off."
❤️ Health Display on Hit (Enabled by Default) pvp: show-health-on-hit: true
Displays the target's remaining health whenever you attack them.
Example:
Player [████████████░░░░░░░░] 12.0❤
Health bar colors:
🟢 Green: Above 60% 🟡 Yellow: Between 30% and 60% 🔴 Red: Below 30%
This provides immediate combat feedback without requiring additional commands.
📢 Global Sentence Announcement + Title Notifications sentence: announce-title-to-all: true
Whenever a player is sentenced:
A global broadcast message is sent to the entire server. A title notification is displayed on every player's screen.
Example Title:
⚔ SENTENCED ⚔
This ensures all players are immediately aware that a new target has been marked and the hunt has begun.
These updates improve reliability, enhance the PvP experience, provide clearer player feedback, and offer server administrators even greater control over gameplay behavior.
