1.
Command Cooldowns: You can now set specific cooldown durations for individual commands in the `config.yml` file using the `command-cooldowns` section. This allows you to control how frequently certain commands can be used.
2.
Command Cooldown Message: You can specify a custom message for players who attempt to use a command that is on cooldown. The `{time}` placeholder in the message will be replaced with the remaining time in seconds.
3.
Permission Checks: Permissions have been implemented to control who can bypass command cooldowns and who can reload the configuration. Specifically, the `chatdelay.reload` permission is required to reload the configuration, the `chatdelay.cmdcool` permission is required to bypass command cooldowns, and the `chatdelay.chatcool` permission is required to bypass chat cooldowns.
4.
Improved Code Structure: The code has been organized to handle different aspects of the plugin more cleanly, making it easier to understand and maintain.
You can now change messages for Chat cooldown and command cooldown with Cooldown!