This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
If I run another cmd from "RUN_COMMAND" "runcmd:" line with $args and not writting all arguments in this command:
Bounty_Help: command: /bounty type: RUN_COMMAND runcmd: #Check for arg1 ... - '$Script$%if%$arg1==info' - '/bounty_info $arg2' - '$Script$%elseif%$arg1==add' - '/bounty_addreward $arg2 $arg3' - '$Script$%elseif%$arg1==menu' - '/bounty_menu' #Else - '$Script$%else%' - '$text$&9----- &eBounty príkazy &9-----' - '$text$&a/bounty info <hráč> &6- vypísaná odmena za zabitie hráča' - '$text$&a/bounty add <hráč> <čiastka> &6- pridať odmenu za zabitie hráča' - '$text$&a/bounty menu &6- tabulka online hráčov s vypísanými odmenami za zabitie' - '$text$&9------------------------' permission-required: false required_args: 0 register: true tab_completer_display_mode: CHARACTER_BASED tab_completer: '1': - add - info - menu '2': - $player_list '3': - čiastka
Example: if I type in chat /bounty add I still get "Not enough arguments... You typed (1/3)" "-> Output Commands: [/bounty_addreward $arg2 $arg3]" message even if none arguments are required which isn't good since I don't want players to see the other unregistered commands. The other unregistered sub-commands also doesn't require any arguments. Removing "required_args: 0" didn't work.Also just to add - the other sub-commands have properly setup $Script$ so that if any arg is not filled the cmd returns with something like:
- '$Script$%else%'
- '$text$&cUnknown player($arg2) or čiastka($arg3) is not set.'which doesn't show up at all.Thanks for any feedback, other than this the new 5.7.1 works and looks nice.
Hi, the best way for this is creating a separate command for /bounty add. You can create /bounty as a first command and on the second command, create a command /bounty add and so on. You might want to add error-message: option as well to change the error message when you typed an incomplete command.
Will give it a try, didn't know you could make "command: /bounty add" with a space in it, I always thought it will count the second word as $arg1.
To post a comment, please login or register a new account.