fix update on report to penalize flagged users

This commit is contained in:
RaidMax 2022-03-23 08:22:23 -05:00
parent 287635fa36
commit b46b1eb5e7

View File

@ -14,7 +14,7 @@ let plugin = {
}
if (gameEvent.Type === this.eventTypes['report']) {
if (!gameEvent.Target.IsIngame || gameEvent.Target.Level !== 'User') {
if (!gameEvent.Target.IsIngame || (gameEvent.Target.Level !== 'User' && gameEvent.Target.Level !== 'Flagged')) {
server.Logger.WriteInfo(`Ignoring report for client (id) ${gameEvent.Target.ClientId} because they are privileged or not ingame`);
return;
}