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.6.0.jar

  • R
  • Aug 7, 2025
  • 726.85 KB
  • 3
  • 1.21.8+8

File Name

CustomHitCommand-1.6.0.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.6?
- Implemented Rate Limiting: A new rate limiter has been added to prevent command spamming. The cooldown time is configurable with a minimum of 100 milliseconds.
- New Security Configuration: A dedicated security section has been added to the config.yml file to manage the new rate limiting feature.
- Improved Configuration File: The config.yml file has been refactored for enhanced readability, and several typos have been fixed.
- Centralized Security Logic: The plugin now includes a new SecurityUtils.java file, which centralizes the rate limiting and other security-related logic for future enhancements.
- Enhanced Code Readability: Comments have been added to the SecurityUtils.java file to improve code readability and maintainability.
- Improved Startup Process: The plugin now features a revised startup logic and clearer console messages for a better user experience.
- Particle System Migration: A migration system for particle names has been implemented, ensuring backward compatibility and a more user-friendly configuration.
- Automatic Memory Management: An automatic memory cleaner has been added to periodically remove old cooldown entries, preventing memory leaks and ensuring stable performance.