#left_click_requirement dont work
1 messages · Page 1 of 1 (latest)
that's not the right format
see the wiki https://wiki.helpch.at/clips-plugins/deluxemenus/options-and-configurations/requirements
that's OK?
yes
just remember click_requirement is for click_commands (not left_ and/or right_click_commands)
Also, general rule of thumb when asking for help with a config: Send a paste of the config, not a picture.
'cascor':
material: diamond_helmet
slot: 10
display_name: '&cCasco: Protección 4'
lore:
- ' &8Click aqui para'
- ' &8Comprar esta parte'
- ' &7● &fPrecio: &6$25.000'
- ''
- ' &e¡Clic para comprar!'
left_click_requirement:
requirements:
1:
type: has money
amount: 25000
sucesss_commands:
- '[console] eco take %player_name% 25000'
- '[console] give %player_name% 310 1 name:&aCasco_Regular enchants: unbreaking:3, Protection:4'
- '[close]'
deny_commands:
- '[message] &7&l&elSurvival&6&lOP &f¡Necesitas &a$25.000 &fpara hacer esto!'
- '[close]'
I want to make it so that when you click left/right it gives you that item, but it doesn't seem to work
instead of using success_commands in the requirement, use click_commands for the item directly, and rename left_click_requirement to just click_requirement so it affects right click as well
items:
'cascor':
material: diamond_helmet
slot: 10
display_name: '&cCasco: Protección 4'
lore:
- ' &8Click aqui para'
- ' &8Comprar esta parte'
- ' &7● &fPrecio: &6$25.000'
- ''
- ' &e¡Clic para comprar!'
click_requirement:
requirements:
1:
type: has money
amount: 25000
click_commands:
- '[console] eco take %player_name% 25000'
- '[console] give %player_name% 310 1 name:&aCasco_Regular enchants: unbreaking:3, Protection:4'
- '[close]'
deny_commands:
- '[message] &7&l&elSurvival&6&lOP &f¡Necesitas &a$25.000 &fpara hacer esto!'
- '[close]'
but it still doesn't work
click_commands should be outside of the requirements
at the same level as the click_requirement line
'cascor': material: diamond_helmet slot: 10 display_name: '&cCasco: Protección 4' lore: - ' &8Click aqui para' - ' &8Comprar esta parte' - ' &7● &fPrecio: &6$25.000' - '' - ' &e¡Clic para comprar!' click_requirement: requirements: 1: type: has money amount: 25000 click_commands: - '[console] eco take %player_name% 25000' - '[console] give %player_name% 310 1 name:&aCasco_Regular enchants: unbreaking:3, Protection:4' - '[close]' deny_commands: - '[message] &7&l&elSurvival&6&lOP &f¡Necesitas &a$25.000 &fpara hacer esto!' - '[close]'