G
- Версия ядра сервера
- 1.21+
Столкнулся с проблемой создал на DeluxeMenu код, который должен обрабатывать покупку. Вроде сделал всё правильно, но по старым меркам. Однако оно абсолютно не работает. По тому, что я вижу, проблема связана с распознаванием плейсхолдеров какой бы я их ни ставил, ни меню, ни ExecutableItems их не видят. В документации плейсхолдеры указаны, но, возможно, из-за меню они не работают. В общем, я пока не разобрался в причине. Кто-нибудь может помочь с решением этой проблемы?
ExecutableItems: воспринимает placeholder как игрока
Консольная ошибка вот такая:
[20:16:35 INFO]: Can't find player with this name! ([name]) (money -> [name])
[20:16:35 INFO]: [ExecutableItems] Player %player_name% not online (You enabled the feature giveOffline, so the item will be given when the player reconnects)
ExecutableItems: воспринимает placeholder как игрока
YML:
items:
1:
display_name: '&eУдочка'
material: FISHING_ROD
slot: 20
lore:
- '&d• &7Раритет'
- '' #Здесь я проверял видно ли placeholder
- '&aЛКМ &7- купить за &a500$ %player% player_name% {player}'
left_click_requirement:
requirements:
has_money:
type: '>='
input: '%cmi_user_balance%'
output: '500'
deny_commands:
- '[close]'
- '[message] &c✘ У вас недостаточно денег!'
- '[message] &7Нужно: &a500$ &7(у вас: &a%cmi_user_balance%&7)'
- '[sound] BLOCK_ANVIL_LAND'
left_click_commands:
- '[console] money take %player_name% 500'
- '[console] ei give %player_name% 1fish 1'
- '[message] &a✔ Вы купили &eУдочку &aза &a500$!'
- '[sound] ENTITY_PLAYER_LEVELUP'
[20:16:35 INFO]: Can't find player with this name! ([name]) (money -> [name])
[20:16:35 INFO]: [ExecutableItems] Player %player_name% not online (You enabled the feature giveOffline, so the item will be given when the player reconnects)