You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
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 thereforeOnPlayerCommandReceived
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 text was updated successfully, but these errors were encountered: