Lightweight PvP combat system with timers, combat tags, escape blocking, alerts, and full customization for fair fights.
Changelog
All notable changes to True Combat Manager will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[1.0.1] - 2025-11-30
๐ Performance & Bug Fix Release
CRITICAL UPDATE: This version fixes severe performance issues causing server lag and resolves multiple critical bugs.
โก Performance Improvements
Console Logging Optimization
- FIXED: Server lag caused by excessive string creation
- FIXED: Logging strings were being created even when logging was disabled
- OPTIMIZED: All logging now uses
LoggingManagerwhich checks before creating strings - RESULT: Zero performance impact when logging is disabled (default)
- IMPACT: Server TPS improved from 15-18 to stable 20
Memory Optimization
- Eliminated 700+ unnecessary string object creations per second
- Reduced garbage collection pressure significantly
- Optimized newbie protection checks
- Reduced CPU usage during combat events
โจ New Features
Console Logging Control
- NEW COMMAND:
/combat logging <enabled|disabled> - Control what gets logged to console in real-time
- Beautiful formatted UI with status display
- Tab completion support
- Persistent setting (survives server restarts)
- Permission:
pvpcombat.admin
Enhanced UI/UX
- Color-coded feedback messages (green/red)
- Box borders for better readability
- Clear status indicators (โ and โ)
- Detailed explanations of logging options
- Multiple command aliases support
๐ก๏ธ Bug Fixes
Newbie Protection (CRITICAL FIX)
- FIXED: Newbie protection was completely broken
- ISSUE:
ItemStackis never null in Bukkit - returns AIR material - SOLUTION: Now checks
helmet != null && helmet.getType() != Material.AIR - RESULT: Naked players are now correctly identified and protected
- Added detailed armor slot logging for debugging
Trident Restrictions (CRITICAL FIX)
- FIXED: Tridents could still be used in combat
- ISSUE: Event handler was missing after code edits
- SOLUTION: Re-added
onTridentLaunch()event handler - RESULT: Both throwing and riptide are now blocked
- Added separate handler for riptide enchantment
Respawn Anchor Blocking (NEW)
- ADDED: Respawn anchors are now blocked during combat
- Fully configurable (can be enabled/disabled)
- Custom blocked message
- Console logging support
Ender Pearl Safezone Entry (FIXED)
- FIXED: Players could use ender pearls to teleport into safezones
- Added
PlayerTeleportEventhandler - Checks if destination is in safezone
- Blocks teleport if player is in combat
Barrier System Improvements
- FIXED: Barriers were appearing on existing blocks (griefing issue)
- SOLUTION: Barriers now only render on AIR blocks
- Uses ProtocolLib for reliable packet-based rendering
- Barriers persist until player moves >10 blocks away or combat ends
- Update task runs every 0.5 seconds to prevent despawning
๐ฎ Restrictions & Anti-Abuse
Complete Restriction List
All restrictions are now working and fully tested:
โ Ender Pearls
- Blocked during combat
- Cannot teleport into safezones
- Configurable cooldown
โ Tridents
- Throwing blocked
- Riptide enchantment blocked
- Separate event handlers for each
โ Respawn Anchors (NEW)
- Usage blocked during combat
- Configurable enable/disable
- Custom messages
โ Elytra
- Gliding blocked
- Firework boosting blocked
โ End Crystals
- Placement blocked
- Breaking configurable
โ Commands
- Teleport commands blocked
- Configurable command list
- Bypass permission support
โ Safezone Entry
- Movement blocked
- Glass barriers at boundaries
- Visual and audio feedback
๐ ๏ธ Configuration Changes
New Configuration Section
# Console Logging Control
logging:
console-enabled: false # Default: disabled for best performance
# What gets logged when enabled:
# - Combat start/end events
# - Damage dealt/received
# - Newbie protection checks
# - Restriction blocks
# - Command blocks
# - Safezone interactions
New Restriction Configuration
restrictions:
respawn-anchor:
enabled: true
blocked-message: "&cYou cannot use Respawn Anchors during combat!"
๐ Commands
New Admin Commands
| Command | Description | Permission |
|---|---|---|
/combat logging |
Check console logging status | pvpcombat.admin |
/combat logging enabled |
Enable console logging | pvpcombat.admin |
/combat logging disabled |
Disable console logging | pvpcombat.admin |
Command Aliases
enabled,enable,on,true- Enable loggingdisabled,disable,off,false- Disable logging
๐ง Technical Changes
Architecture Improvements
- Added
LoggingManagerclass for centralized logging control - Optimized string creation in event handlers
- Improved null checking for ItemStack armor slots
- Better event handler organization
Code Quality
- Removed duplicate event handlers
- Fixed method signatures
- Improved error handling
- Added comprehensive logging for debugging
Files Modified
LoggingManager.java(NEW)PvPCombatPlugin.java- Added LoggingManager integrationAdminCommand.java- Added logging commandCombatEventListener.java- Optimized all logging callsNewbieProtection.java- Fixed armor checking, optimized loggingSafeZoneBarrierRenderer.java- ProtocolLib integration, AIR block checkconfig.yml- Added logging section
๐ Performance Metrics
Before Optimization
- Server TPS: 15-18 (laggy)
- String objects created: 700+/second
- CPU usage: High
- Console: Spam with logs
- Memory: High garbage collection
After Optimization
- Server TPS: 20 (smooth)
- String objects created: 0/second (when logging disabled)
- CPU usage: Normal
- Console: Clean
- Memory: Optimized
๐ Known Issues Fixed
- โ Server lag from excessive logging
- โ Newbie protection not working
- โ Tridents usable in combat
- โ Ender pearls entering safezones
- โ Barriers appearing on blocks
- โ Barriers despawning/glitching
- โ Console spam even with debug disabled
๐ฎ Migration Guide
From Previous Versions
- Stop your server
- Backup your config (optional)
- Replace the plugin JAR with
TrueCombatManager-1.0.1.jar - Start your server
- Check console logging status:
/combat logging - Recommended: Keep logging disabled for best performance
Configuration Updates
- New
loggingsection added automatically - Default:
console-enabled: false(recommended) - All other settings remain compatible
โ ๏ธ Breaking Changes
None. This version is fully backward compatible.
๐ Notes
Performance
- IMPORTANT: Keep
console-enabled: falsefor production servers - Enable logging only when debugging issues
- Logging can be toggled in-game without restart
Newbie Protection
- Now correctly detects naked players
- Checks for AIR material, not just null
- Extensive logging available when enabled
- Bypass permission:
pvpcombat.bypass.newbie
ProtocolLib
- Recommended but not required
- Falls back to Bukkit API if not installed
- Better barrier performance with ProtocolLib
- Version 5.0+ recommended
๐ Compatibility
Supported Platforms
- Paper 1.18.x - 1.21.x (recommended)
- Spigot 1.18.x - 1.21.x (supported)
- Purpur 1.18.x - 1.21.x (supported)
Tested Versions
- โ Minecraft 1.21.10 (fully tested)
- โ Minecraft 1.21.x series (fully tested)
- โ Minecraft 1.20.x series (compatible)
Java Requirements
- Minimum: Java 17
- Recommended: Java 21
- Tested: Java 21.0.8
Dependencies
- Required: None
- Recommended: ProtocolLib 5.0+
- Optional: WorldGuard 7.0+, PlaceholderAPI 2.11+
๐ Credits
Author: muzlik
Testing: Community feedback
Special Thanks: Paper and Spigot development teams
๐ License
All Rights Reserved ยฉ 2025 muzlik
This is proprietary software. Unauthorized copying, distribution, modification, or use is strictly prohibited.
[1.0.0] - 2025-11-21
๐ Initial Release
First stable release of True Combat Manager - a comprehensive, feature-rich PvP combat plugin.
Core Features
- Real-time combat detection and management
- Comprehensive statistics tracking
- Combat replay system
- Visual feedback (BossBar, ActionBar, Sounds)
- Extensive restriction system
- PlaceholderAPI integration
- Cross-server support (experimental)
Known Issues (Fixed in 1.0.1)
- โ ๏ธ Server lag from excessive logging
- โ ๏ธ Newbie protection not working correctly
- โ ๏ธ Tridents usable in combat
- โ ๏ธ Barriers appearing on blocks
- โ ๏ธ Ender pearls entering safezones
Current Version: 1.0.1
Released: November 30, 2025
Author: muzlik
Support: Contact author directly
Information
| Published on | December 1, 2025 |
|---|---|
| Downloads | 39 |