- Баллы
- 6
- Ник в Minecraft
- Hazwar
Нужно сделать обменник изумрудов на деньки, использую планин на валюту WEconomy. Меню сделал, нужно сделать только проверку, а хз как. Можно без ссылок и наездов, просто напишите как сделать, пожалуйста. Делал код ChatGPT, мне нужна только проверка. Вот код:
display_name: '&aExchange Emeralds'
lore:
- 'Left click to exchange your emeralds.'
left_click_requirement:
requirements:
has items:
type: has items
items:
- 'EMERALD 1'
deny_commands:
- '[message] &cYou do not have enough emeralds to exchange.'
left_click_commands:
- '[console] clear %essentials_nickname% EMERALD 1'
- '[givemoney] 1'
- '[message] &aYou have exchanged an emerald for 1 currency!'menu_title: 'Emerald Exchange'
open_command: obmen
size: 9
items:
'info':
material: BOOK
slot: 4
display_name: '&aInformation'
lore:
- 'This is the emerald exchange.'
- 'Left click the emerald to exchange for currency.'
'exchange':
material: EMERALD
slot: 8
display_name: '&aExchange Emeralds'
lore:
- 'Left click to exchange your emeralds.'
left_click_requirement:
requirements:
has items:
type: has items
items:
- 'EMERALD 1'
deny_commands:
- '[message] &cYou do not have enough emeralds to exchange.'
left_click_commands:
- '[console] clear %essentials_nickname% EMERALD 1'
- '[givemoney] 1'
- '[message] &aYou have exchanged an emerald for 1 currency!'
display_name: '&aExchange Emeralds'
lore:
- 'Left click to exchange your emeralds.'
left_click_requirement:
requirements:
has items:
type: has items
items:
- 'EMERALD 1'
deny_commands:
- '[message] &cYou do not have enough emeralds to exchange.'
left_click_commands:
- '[console] clear %essentials_nickname% EMERALD 1'
- '[givemoney] 1'
- '[message] &aYou have exchanged an emerald for 1 currency!'menu_title: 'Emerald Exchange'
open_command: obmen
size: 9
items:
'info':
material: BOOK
slot: 4
display_name: '&aInformation'
lore:
- 'This is the emerald exchange.'
- 'Left click the emerald to exchange for currency.'
'exchange':
material: EMERALD
slot: 8
display_name: '&aExchange Emeralds'
lore:
- 'Left click to exchange your emeralds.'
left_click_requirement:
requirements:
has items:
type: has items
items:
- 'EMERALD 1'
deny_commands:
- '[message] &cYou do not have enough emeralds to exchange.'
left_click_commands:
- '[console] clear %essentials_nickname% EMERALD 1'
- '[givemoney] 1'
- '[message] &aYou have exchanged an emerald for 1 currency!'