don't intercept commands for login plugin if they are from webfront

This commit is contained in:
RaidMax 2022-10-25 13:22:33 -05:00
parent 7d6bf88bfd
commit 6fa15d3dcc

View File

@ -51,7 +51,7 @@ namespace IW4MAdmin.Plugins.Login
manager.CommandInterceptors.Add(gameEvent => manager.CommandInterceptors.Add(gameEvent =>
{ {
if (gameEvent.Type != GameEvent.EventType.Command || gameEvent.Extra is null) if (gameEvent.Type != GameEvent.EventType.Command || gameEvent.Extra is null || gameEvent.IsRemote)
{ {
return true; return true;
} }