mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-03-11 16:59:58 +00:00
feat: implement penaltylog on gag
This commit is contained in:
@@ -34,6 +34,8 @@ namespace CS2_SimpleAdmin
|
|||||||
|
|
||||||
Helper.SendDiscordLogMessage(caller, command, _discordWebhookClientLog, _localizer);
|
Helper.SendDiscordLogMessage(caller, command, _discordWebhookClientLog, _localizer);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int.TryParse(command.GetArg(2), out time);
|
int.TryParse(command.GetArg(2), out time);
|
||||||
|
|
||||||
if (command.ArgCount >= 3 && command.GetArg(3).Length > 0)
|
if (command.ArgCount >= 3 && command.GetArg(3).Length > 0)
|
||||||
@@ -47,6 +49,7 @@ namespace CS2_SimpleAdmin
|
|||||||
if (caller!.CanTarget(player))
|
if (caller!.CanTarget(player))
|
||||||
{
|
{
|
||||||
Gag(caller, player, time, reason, callerName, _muteManager, playerPenaltyManager);
|
Gag(caller, player, time, reason, callerName, _muteManager, playerPenaltyManager);
|
||||||
|
Helper.SendDiscordPenaltyMessage(caller, player, reason, time, Helper.PenaltyType.Gag, _discordWebhookClientPenalty, _localizer);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user