#Suggestion for DeluxeMenu
1 messages · Page 1 of 1 (latest)
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
this might help it make sense https://github.com/PlaceholderAPI/CheckItem-Expansion/wiki/DeluxeMenus-Example-Menus
I have an argument example and a meta example
just adding onto this a little bit: the entire command/argument system would need to be re-written. It is on the hopeful to-do-list, but very far down in priority
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]'
I understand the situation, I hope this suggestion can be implemented with eagerness, good luck
I would put the name/price into a meta value
- '[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
For that the user had to go through a menu previously...
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
you can use commands to set meta value
if that's what you need
/dm execute
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
ohh, i'll check it out
no need
@low void do this
when they click the button, set the meta values
and make sure the menu doesn't open if meta values aren't set
Then I would execute this series of commands:
dm execute player [meta] set dmshop-price DOUBLE 2.87
dm execute player [meta] set dmshop-item STRING Carrot
dm open player template_furniture
no need for dm execute or dm open inside deluxemenus @low void