From 2830a188c3f60dba98d9a25a583b51ccf4747948 Mon Sep 17 00:00:00 2001 From: MSWS Date: Fri, 25 Oct 2024 15:15:09 -0700 Subject: [PATCH] Specify seconds left till count can be used --- mod/Jailbreak.Warden/Commands/CountCommandsBehavior.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mod/Jailbreak.Warden/Commands/CountCommandsBehavior.cs b/mod/Jailbreak.Warden/Commands/CountCommandsBehavior.cs index 238da3fc..4be310de 100644 --- a/mod/Jailbreak.Warden/Commands/CountCommandsBehavior.cs +++ b/mod/Jailbreak.Warden/Commands/CountCommandsBehavior.cs @@ -27,8 +27,10 @@ public void Command_Count(CCSPlayerController? executor, CommandInfo info) { return; } - if (RoundUtil.GetTimeElapsed() < CV_COUNT_COMMAND_COOLDOWN.Value) { - locale.CannotCountYet(CV_COUNT_COMMAND_COOLDOWN.Value).ToChat(executor); + var timeTillCount = + CV_COUNT_COMMAND_COOLDOWN.Value - RoundUtil.GetTimeElapsed(); + if (timeTillCount > 0) { + locale.CannotCountYet(timeTillCount).ToChat(executor); return; }