-
-
Notifications
You must be signed in to change notification settings - Fork 443
Fix multiple commands execution in adminmenu_custom.txt #2301
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
base: master
Are you sure you want to change the base?
Conversation
This PR fixes the semicolon parsing issue for adminmenu_custom.txt - player type cmd execution. Below is an example ```adminmenu_custom.txt``` to reproduce the semicolon ";" not working before this fix - multiple commands delimited with ";" will not work. ``` "Commands" { "ServerCommands" { "AntiCheat" { "admin" "sm_ban" "Enable KACR" { "cmd" "sm plugins load disabled/kigen-ac_redux; sm_chat KACR is enabled" "execute" "server" } } } } ```
I saw you have one too many sub-menu (
|
...adminmenu_custom originally have not support more than one sub-menus. You can trick 2nd sub menu by creating list of commands and rename them. |
The depth of menus is another issue that's not covered by this fix. One children sub-menu limitation is not a big deal. I would like my current approach reviewed as it fixes multiple player commands already. If it needs proper fix - suggestions are more than welcome. 🙏 |
This PR fixes the semicolon parsing issue for adminmenu_custom.txt - player type cmd execution.
Below is an example
adminmenu_custom.txt
to reproduce the semicolon ";" not working before this fix - multiple commands delimited with ";" will not work.