The problem that I found during testing is that the flags don't work when calling the command via callcmd.
And this is not surprising, because now callcmd is compiled simply in the call of the function of the command bypassing the plugin and therefore OnPlayerCommandReceived does not work and flags are not checked.
This problem can be solved very simply by duplicating the checks in the commands themselves, but it is not pleasant.
I also considered using PC_EmulateCommand as an option and maybe it is the only normal solution to this situation.
I decided to write this issue anyway, because there may be some solution to this situation, so that the flags are also taken into account during callcmd.
The problem that I found during testing is that the flags don't work when calling the command via
callcmd.And this is not surprising, because now
callcmdis compiled simply in the call of the function of the command bypassing the plugin and thereforeOnPlayerCommandReceiveddoes not work and flags are not checked.This problem can be solved very simply by duplicating the checks in the commands themselves, but it is not pleasant.
I also considered using
PC_EmulateCommandas an option and maybe it is the only normal solution to this situation.I decided to write this issue anyway, because there may be some solution to this situation, so that the flags are also taken into account during
callcmd.