#Suggestion for DeluxeMenu

1 messages · Page 1 of 1 (latest)

low void
#

Please add argument support in the command /dm open [name_gui] [player] {arg1} {arg2} {arg3} ....
and in the [openguimenu] tradeos_cultivos_2 {arg1} {arg2} {arg3}

By doing this we can convert 40 pages into 1

vale seal
#

it would be nice, but unfortunately very hard to do with how the command system operates

#

arguments are tied to the registered commands

#

the only way I've personally found to still make use of arguments while allowing players access to the command is adding a "password" argument

#

where one of the arguments needs to equal an exact phrase for anything to happen, so players can't easily abuse a system

#

if it's something like a shop that includes item pricing I would probably recommend using meta instead of arguments so it's more secure

#

if that makes sense

#

I have an argument example and a meta example

vale seal
low void
# vale seal if it's something like a shop that includes item pricing I would probably recomm...

I don't think I can use meta, as I understand what it's for.
What I'm looking for is that when I click on a piece of furniture, execute a command with the minimum arguments, the item and the price, and open a DeluxeMenu menu

/dm open template_shop_furniture {name} {price}

   show_item:
     material: itemsadder-souleaf:{name}
     ...
     click_commands:
     - '[console] iagive %player_name% souleaf:{macetero} 1 silent'
     - '[takemoney] {price}'
     - '[close]'
low void
vale seal
#
    - '[meta] set dmshop-price DOUBLE 2.87'
    - '[meta] set dmshop-item STRING Carrot'
    - '[openguimenu] template_shop_furniture'
#

if you use arguments, it could be abused by users

#

has the potential

low void
vale seal
#

the meta value doesnt' disappear until you remove it

#

so if you set it for one menu, it will still be set for any other menus they open

#

oh sorry I completely misunderstood

vale seal
#

if that's what you need

#

/dm execute

low void
#

What I'm looking for is that when I right click on a piece of furniture in the shop, a menu opens and the furniture is shown in the gui and a buy button... so I would need the arguments to specify the name and price

low void
vale seal
#

no need

vale seal
#

when they click the button, set the meta values

#

and make sure the menu doesn't open if meta values aren't set

low void
vale seal
#

no need for dm execute or dm open inside deluxemenus @low void