Hello DeluxeMenus Support Team,
I am a new server owner trying to set up a shop menu using your amazing plugin. My server is running Minecraft 1.21.5.
I'm encountering an issue when attempting to use a command in the left_click_commands section of my menu item. The goal is to give a player an item after they purchase it.
Problem Description:
When a player clicks the item in the menu, the console shows the following error: (in picture)
My Code (DeluxeMenus config snippet):
menu_title: '&a&lPETS SHOP'
open_command: 'pets_shop'
size: 27
items:
'Nocsy_Werewolf_item':
display_name: '&6[&eA+&6] &4Baby &8(&cWarewolf&8) &7Pup'
material: PAPER
model_data: 10187
lore:
- '&7TEST'
- '&7TEST'
slot: 10
left_click_requirement:
requirements:
has_money:
type: has money
amount: 15000
deny_commands:
- '[message] &cYou don''t have enough money for this!'
left_click_commands:
- '[console] give %player_name% diamond 1' # <-- This is the problematic line
- '[takemoney] 1000' # (Note: I know this needs to be 15000, will fix after this issue)
- '[message] &aYou bought 1 &6DIAMOND_BLOCK &afor $100' # (Note: This message needs updating too)