ZHorse

ZHorse

10.4k Downloads

Add a cooldown on commands

Zedd7 opened this issue ยท 0 comments

commented

Server admins should be able to define a cooldown for any command.

This should be done by adding config options in the form :

  • Commands.<command>.cooldown

Cooldowns should be in seconds. Alternatives formats (Xs, YmXs, ZhYmXs) might be considered but could cause parsing issues.

  • Cooldowns should be managed at player level. Only the player that triggered a cooldown should be prevented from using the command for the given period.

  • Cooldowns should be displayed in the command usage when a player execute /zh help command.