Chew / JDA-Chewtils

Chew's fork of JDA-Applications/JDA-Utilities, with support for modern features such as Slash Commands, Context Menus, and more.

Home Page:https://chew.pro/JDA-Chewtils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cooldownUnit or switching cooldowns to timestamps

capyrightdev opened this issue · comments

Issue Checklist

  • I have checked for similar issues on the Issue tracker
  • I have updated to the latest version of JDA-Chewtils.
  • I have checked the branches or the maintainer's PRs for upcoming features and updates.

Affected Modules

Command

Description

Simply makes the entire cooldown situation much more cleaner. Chew told me to suggest this here so, here we go.

this.cooldownUnit = TimeUnit.MINUTE;
or it simply states the timestamp in the message.
For example, instead of "You can not use that command for another 2 seconds!" it'll be "You can not use that command until 6 hours later!