Skip to content

Commit

Permalink
Specify seconds left till count can be used
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Oct 25, 2024
1 parent 97c2d95 commit 2830a18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mod/Jailbreak.Warden/Commands/CountCommandsBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2830a18

Please sign in to comment.