A comprehensive combat tagging plugin that prevents players from escaping PvP situations by logging out or using commands. Features a modern GUI system with real-time statistics and configurable settings.
⚔️ Features
Combat Tagging - 20-second configurable combat timer activation on damage
Action Bar Display - Real-time countdown with ᴍɪɴᴇᴄʀᴀꜰᴛ ꜱᴍᴀʟʟ ꜰᴏɴᴛ styling
Command Blocking - Configurable command restrictions during combat
Inventory Protection - Prevents inventory manipulation during combat
Logout Prevention - Eliminates combat logging by killing disconnected players
Admin GUI - Dynamic statistics panel with player management
Statistics Tracking - Combat counts, logout kills, and active player monitoring
Adventure API - Modern text components with color and formatting support
Commands & Permissions
Command
Permission
Description
/zcombat
zcombat.use
Main command - shows help
/zcombat admin
zcombat.admin
Opens admin GUI panel
/zcombat reload
zcombat.reload
Reloads plugin configuration
/zcombat status
zcombat.admin
Shows plugin statistics
/zcombat version
zcombat.use
Displays plugin version
Permission
Default
Description
zcombat.use
true
Basic plugin usage
zcombat.admin
op
Admin access and GUI
zcombat.bypass
false
Bypass combat tagging
zcombat.reload
op
Reload configuration
Requirements
Minecraft Version: 1.20+ to 1.21.7+
Java Version: 17 or higher
Server Software: Spigot/Paper/Purpur
Dependencies: None (all bundled)
⚙️ Configuration
Code (Text):
[color=#55FF55]combat:
# Combat timer duration in seconds
duration: 20
# Kill player on logout during combat
kill-on-logout: true
# Block all commands except allowed ones
block-commands: true
# Block inventory interactions during combat
block-inventory: true
gui:
# GUI title with small font styling
title: "ᴢᴄᴏᴍʙᴀᴛ ᴀᴅᴍɪɴ ᴘᴀɴᴇʟ"
# Auto refresh interval in seconds
refresh-interval: 5
# Enable sound effects
sounds: true
actionbar:
# Enable action bar messages
enabled: true
# Action bar update interval in ticks
update-interval: 20
# Use small font for action bar
use-small-font: true[/color]
Message Customization
All messages support Minecraft color codes with & formatting:
Code (Text):
[color=#FF5555]combat:
tagged: "&c&lᴄᴏᴍʙᴀᴛ! &7You are now in combat for &c{time} &7seconds!"
countdown: "&c⚔ &7ᴄᴏᴍʙᴀᴛ: &c{time}s"
ended: "&a&lᴄᴏᴍʙᴀᴛ ᴇɴᴅᴇᴅ! &7You are now safe."[/color]
Installation
Download the zCombat-1.0.0.jar file
Place it in your server's plugins folder
Restart your server
Configure config.yml and messages.yml to your preferences
Use /zcombat reload to apply changes
Statistics
The plugin tracks:
ᴛᴏᴛᴀʟ ᴄᴏᴍʙᴀᴛ ɪɴᴄɪᴅᴇɴᴛꜱ - Total combat tags initiated