#A question about Deluxemenu Args

1 messages · Page 1 of 1 (latest)

lone sparrow
#

I currently have a menu where I use args. Let's say there are a total of 3 args, but I don't want it to be mandatory to enter all 3 args when opening the menu. How can I achieve this?

CONFİG:
https://imgyukle.com/i/rOA6jq

potent wolf
#

I can't load that image, but for configs use a paste service

kindred yarrowBOT
#
FAQ Answer:

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

potent wolf
#

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

lone sparrow
potent wolf
#

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