LabAPI
LabAPI copied to clipboard
[BUG] Cannot modify command arguments in CommandExecuting event if the command was executed through RA or Client Console
Before You Report
- [x] I have searched for existing reports of this bug, and this bug report is unique.
Version
1.1.4
Description
Game doesn't respect arguments variable in RemoteAdmin.CommandProcessor::ProcessQuery and GameCore.Console::TypeCommand when executing the command.
To Reproduce
In CommandExecuting event try to modify Arguments property, the code will only work with RA commands executed through server console.
Expected Behavior
Now, broken version: command.Execute(array.Segment(1), sender, ...)
What it should be: command.Execute(arguments, sender, ...)
Additional Information
Fixed in 14.2.3