I couldn't Find the fright section to post this in so I’m going to try this.
on my Minecraft server I want To give players access to the command /feed and /heal but I don't Want them to overuse them. Is there a way to make it so they can only use this command every 5 or 10 minutes.
Perhaps the easiest way would be to set up some command blocks with redstone which only allows activation every so many minutes.
The simplest way would be to have a button that when pressed, locks for a period of time.
I was thinking more along the lines of a data pack depending on if the version is new enough, but it's the same basic principle. Also the commands would vary depending on the MC version too. This is why I inquired as to what version they were using.