Hello guys, i'm trying to make a deluxemenu gui who work like you run the gui on /duel %player% as exemple and also run /duel %player% builduhc as exemple on click command.
There is how my is actually build :
menu_title: '&4&lDuel &f&lMenu'
open_command:
- duel {player}
- 1v1 {player}
- fight {player}
args:
- player
register_command: true
size: 45
items:
'NoDebuff':
material: POTION
data: 16421
enchantments:
- FIRE_ASPECT;1
update: true
hide_enchantments: true
hide_effects: true
slot: 9
display_name: '&dNoDebuff'
lore:
- '&8&m-------------&8&m-------------'
- ''
- ' &cDuel &f%player% &dNoDebuff &fMatches! '
- ''
- ''
- '&8↠ Left-Click to &cDuel &8| Right-Click to &4BO3 &8↞'
- ''
- '&8&m-------------&8&m-------------'
left_click_commands:
- '[sound] ENTITY_EXPERIENCE_ORB_PICKUP 2 1'
- '[player] duel nodebuff'
- '[close]'
right_click_commands:
- '[sound] ENTITY_HORSE_ARMOR 2 1'
- '[player]duel nodebuff'
- '[close]'