1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-15 09:43:35 -05:00

Fix self-targeting

Remove creation of penalty on mute expiration
This commit is contained in:
Amos
2022-10-14 15:21:18 +01:00
committed by RaidMax
parent bfad75d7eb
commit fe08463e2c
4 changed files with 19 additions and 1 deletions

View File

@ -42,6 +42,12 @@ public class TempMuteCommand : Command
public override async Task ExecuteAsync(GameEvent gameEvent)
{
if (gameEvent.Origin.ClientId == gameEvent.Target.ClientId)
{
gameEvent.Origin.Tell(_translationLookup["PLUGINS_MUTE_SELF_TARGET"]);
return;
}
var match = Regex.Match(gameEvent.Data, TempBanRegex);
if (match.Success)
{