#A question about Deluxemenu Args
1 messages · Page 1 of 1 (latest)
I can't load that image, but for configs use a paste service
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
• HelpChat Paste - How To Use
it is not possible to do what you want though via deluxemenus
A couple things, you could take in only ONE argument and split it up maybe using the string expansion, but it might be more work than it's worth
if you have a custom command plugin, maybe go that route. If the player enters less than 3 arguments, the custom command can fill in the rest with "default" values
If I understand correctly, if I do what you're saying, I would need to use both a string expansion and a command plugin like Mycommands, right? If that's the case, let me ask you something: If I set only one argument as "test" and the player enters "/deluxemenu test test," I won't be able to retrieve the second argument, will I?
no, you would need string expansion OR mycmd
using string to separate the arguments from 1 argument
here is a slight example from mycmd though
'stats':
command: /stats
type: RUN_COMMAND
runcmd:
- "$Script$%if%%parseother_{$arg1}_{player_has_played_before}%==yes"
- "/statsfor $arg1"
- "$Script$%else%"
- "/statsfor $player"
the deluxemenus command is /statsfor <argument> in this instance