mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
prevent autoflag from running player has been manually unflagged
This commit is contained in:
@ -481,10 +481,10 @@ namespace IW4MAdmin
|
||||
|
||||
await Manager.GetPenaltyService().Create(newReport);
|
||||
|
||||
int reportNum = await Manager.GetClientService().GetClientReportCount(E.Target.ClientId);
|
||||
bool isAutoFlagged = await Manager.GetClientService().IsAutoFlagged(E.Target.ClientId);
|
||||
var reportNum = await Manager.GetClientService().GetClientReportCount(E.Target.ClientId);
|
||||
var canBeAutoFlagged = await Manager.GetClientService().CanBeAutoFlagged(E.Target.ClientId);
|
||||
|
||||
if (!E.Target.IsPrivileged() && reportNum >= REPORT_FLAG_COUNT && !isAutoFlagged)
|
||||
if (!E.Target.IsPrivileged() && reportNum >= REPORT_FLAG_COUNT && canBeAutoFlagged)
|
||||
{
|
||||
E.Target.Flag(
|
||||
Utilities.CurrentLocalization.LocalizationIndex["SERVER_AUTO_FLAG_REPORT"]
|
||||
|
Reference in New Issue
Block a user