Skip to content

Commit f488eac

Browse files
committed
fixed wrong seconds display if over 60 seconds
1 parent 2a9e332 commit f488eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CustomCommands/Services/CooldownManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public bool IsCommandOnCooldownWithCondition(Func<CooldownTimer, bool> predicate
3838

3939
if (index != -1)
4040
{
41-
string timeleft = PluginGlobals.CooldownTimer[index].CooldownTime.Subtract(DateTime.Now).Seconds.ToString();
41+
string timeleft = PluginGlobals.CooldownTimer[index].CooldownTime.Subtract(DateTime.Now).TotalSeconds.ToString();
4242
string message = "";
4343

4444
// Check if cmd.Cooldown is a Cooldown object

0 commit comments

Comments
 (0)