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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user