Maxlego08 / zMenu

A plugin that will allow the creation of menu for minecraft, has a complete API for developers
GNU General Public License v3.0
58 stars 10 forks source link

[Suggestion] Argument support in /zmenu open command #13

Closed paulreob closed 1 year ago

paulreob commented 1 year ago

Sending the player a store menu with defined arguments, to be able to make a single template, this would save us a lot of time and from 40 menus to just one

Example: /zmenu open %player% {arg1} {arg2} {arg2}

   show_item:
     material: itemsadder-souleaf:%zmenu_argument_name%
     ...
     click_commands:
     - '[console] iagive %player_name% souleaf:%zmenu_argument_name% 1 silent'
     - '[console] eco take %player% %zmenu_argument_price%'
Maxlego08 commented 1 year ago

Done: https://docs.zmenu.dev/configurations/commands-and-permissions#open-command-with-argument