Enhanced Hex Integration: The command now fully utilizes Hex for parsing and validating complex color formats, including HEX codes (<#FFFFFF>, {#FFFFFF}, &#FFFFFF, #FFFFFF), rainbow effects (<rainbow>), and gradients (<gradient:#FF0000:#00FF00>).
Configurable Word Filter: Added a dynamic forbidden words list (loaded from config.yml) to prevent inappropriate prefixes. The filter strips color codes, HEX, rainbow, and gradient patterns to check only the visible text, ensuring robust content moderation.
Format Validation: Validates all color formats supported by Hex, ensuring only valid HEX codes, rainbow parameters, and gradient configurations are accepted.
Dynamic Configuration: Forbidden words and error messages are loaded from config.yml and lang.yml, making it easy for server admins to customize the plugin.
Example Usage
Set a prefix with gradient: /prefix <gradient:#FF0000:#00FF00>Hello&bWorld
Result: Sets a prefix with a red-to-green gradient on "Hello" and blue color on "World".
Clear prefix: /prefix clear
Result: Removes the player's prefix (with cooldown support).
Invalid input: /prefix <rainbow>offensive
Result: Error message: "You cannot use forbidden words in the prefix."
New placeholder %uprefix_name_color% - It uses the same principle of the prefix but does not have a command to be changed (If you want this to be implemented leave a message)