promotional bannermobile promotional banner

CHC | Custom Hit Command

Executes a configurable command when hitting an other player with a configurable item group or a single item!

File Details

CustomHitCommand-1.7.jar

  • R
  • Aug 9, 2025
  • 728.97 KB
  • 3
  • 1.21.8+8

File Name

CustomHitCommand-1.7.jar

Supported Versions

  • 1.21.8
  • 1.21.7
  • 1.21.6
  • 1.21.5
  • 1.21.4
  • 1.21.3
  • 1.21.2
  • 1.21.1
  • 1.21

What's new in version 1.7?
- Improved Fallback System: The plugin now has a more robust fallback mechanism for invalid configuration settings, ensuring stable operation even with minor errors in the config.yml.
- Enhanced Logging System: An optional logging system has been implemented. When enabled, it provides more detailed debug information, which is useful for troubleshooting. This feature can be turned on and off in the config.yml.
- Code Optimizations: The HitListener.java and ReloadCommand.java classes have been refactored into modern Java records. This simplifies the code and improves performance. Also some minor changes were made.
- Enhanced Error Handling: The plugin's error handling has been significantly improved to provide more specific and actionable error messages in the console, making it easier to diagnose problems.
- Improved Thread Safety: To prevent race conditions and ensure stability on busy servers, the plugin now uses a ConcurrentHashMap for cooldown tracking. This makes the plugin more reliable under high load.