feat: implement penaltylog on gag

This commit is contained in:
Dollan
2024-03-31 01:23:35 +01:00
parent a377871951
commit 8f80e13100

View File

@@ -34,6 +34,8 @@ namespace CS2_SimpleAdmin
Helper.SendDiscordLogMessage(caller, command, _discordWebhookClientLog, _localizer);
int.TryParse(command.GetArg(2), out time);
if (command.ArgCount >= 3 && command.GetArg(3).Length > 0)
@@ -47,6 +49,7 @@ namespace CS2_SimpleAdmin
if (caller!.CanTarget(player))
{
Gag(caller, player, time, reason, callerName, _muteManager, playerPenaltyManager);
Helper.SendDiscordPenaltyMessage(caller, player, reason, time, Helper.PenaltyType.Gag, _discordWebhookClientPenalty, _localizer);
}
});
}