Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flags do not work when the command is called (callcmd). #72

Open
shierru opened this issue Sep 24, 2024 · 0 comments
Open

Flags do not work when the command is called (callcmd). #72

shierru opened this issue Sep 24, 2024 · 0 comments

Comments

@shierru
Copy link

shierru commented Sep 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant