#DeluxeMenus
1 messages · Page 1 of 1 (latest)
click commands are wrongly indentend. They need to be 4 spaces to the left.
Can you send in a paste bin the current version of the item?
Ah. You've moved the click commands to the right, not the left. Here: https://paste.helpch.at/ayeyahowif.bash. I've fixed click commands, and I've added deny commands that will be executed when player doesn't have enough money.
Thanks!!! Now It works
Can I add arguments or variables? I'd like to see a number in the chat when I click on it, and when I type the number, the number in the ee givebook %player_name% lighting (number) command is different.
So, with just DeluxeMenus, you can add arguments to the open command. So for example, if the command to open the menu is /mymenu, you can add arguments such as /mymenu arg1 arg2 etc
On the wiki, look for the register_command option and the args option.
If instead, you want to add arguments after the menu was open, you can use CommandPrompter. This plugin allows you to give argument values using signs, chat or anvils when a player clicks items.
Okey i'm going to see, thank you!
How can I do it? I don't find good information of the plugin
If you send your full menu, I can try to update it to add arguments
Alright. So at the top, I've added these 2 lines:
register_commands: true
args:
- 'test'
This will first register the command with the server, so it will have tab completion.
Then it will register a single argument that will be named test.
You can no use this argument anywhere in the menu like this: {test}.
Of course, it doesn't have to be named test, and you can name it whatever you want. And then the player opening the menu will pass any value for it. For example /simple ABCD.