This is a simple mod that allows to add cooldowns to commands.
The configuration of this mod is stored in a file called command_cooldown.config in the standard Fabric config directory.
For each command you want to add a cooldown to, insert the following line:
command_name: cooldown in ticks
So, for example:
tp: 200
locate: 2000
Or the lack thereof. This work is released into the public domain using the Unlicense. Feel free to do whatever you want with this project.