1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-08 06:08:20 -05:00

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 8e68c88ba3
commit de94bf12bb

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;
} }