dadsDS
Пользователь
- Сообщения
- 399
- Решения
- 19
- Плагин
- DeluxeMenus
- Ядро сервера
- Paper
- Версия сервера
- 1.19
- Память сервера ОЗУ
- 8Gb
Хотел сделать скупщика в DeluxeMenus. Начал делать проверку на СКМ, а она не работает, просто пишет, что нет нужного предмета. Вот кфг
'item134':
material: coal
slot: 11
hide_attributes: true
hide_enchantments: true
display_name: '&c⚔ Уголь'
lore:
- '&c&m '
- '&c|&f Цена за &7х1 - &c15₽ &7[ЛКМ]'
- '&c|&f Цена за &7х64 - &c960₽ &7[ПКМ]'
- ''
- '&c| &fВаш баланс: &7%vault_eco_balance%₽'
left_click_requirement:
requirements:
item_check:
type: has item
material: coal
amount: 1
deny_commands:
- '[message] &c&lСКУПЩИК | &cУ вас нет нужного кол-ва предметов!'
- '[sound] ENTITY_VILLAGER_NO'
left_click_commands:
- '[givemoney] 15'
- '[message] &c&lСКУПЩИК | &fВы продали &7"Уголь х1"&f за&7 15₽'
- '[console] clear %player_name% coal 1'
- '[sound] ENTITY_VILLAGER_TRADE'
- '[refresh]'
right_click_requirement:
requirements:
item_check:
type: has item
material: coal
amount: 64
deny_commands:
- '[message] &c&lСКУПЩИК | &cУ вас нет нужного кол-ва предметов!'
- '[sound] ENTITY_VILLAGER_NO'
right_click_commands:
- '[givemoney] 960'
- '[message] &c&lСКУПЩИК | &fВы продали &7"Уголь х64"&f за&7 960₽'
- '[console] clear %player_name% coal 64'
- '[sound] ENTITY_VILLAGER_TRADE'
- '[refresh]'
# Проверки на СКМ (Наличие Алмаза)
middle_click_requirement:
requirements:
has_money:
type: string equals
input: '%checkitem_mat:coal%'
output: 'yes'
deny_commands:
- '[message] &c&lСКУПЩИК | &cУ вас нет нужного кол-ва предметов!'
- '[sound] ENTITY_VILLAGER_NO'
middle_click_commands:
- '[message] &c&lСКУПЩИК | &fВы продали &7"Уголь х%checkitem_amount_coal%"&f за&7 %math_0_{checkitem_amount_coal}*15%₽'
- '[givemoney] %math_0_{checkitem_amount_coal}*15%'
- '[console] clear %player_name% coal %checkitem_amount_coal%'
- '[sound] ENTITY_VILLAGER_TRADE'
- '[refresh]'
'item134':
material: coal
slot: 11
hide_attributes: true
hide_enchantments: true
display_name: '&c⚔ Уголь'
lore:
- '&c&m '
- '&c|&f Цена за &7х1 - &c15₽ &7[ЛКМ]'
- '&c|&f Цена за &7х64 - &c960₽ &7[ПКМ]'
- ''
- '&c| &fВаш баланс: &7%vault_eco_balance%₽'
left_click_requirement:
requirements:
item_check:
type: has item
material: coal
amount: 1
deny_commands:
- '[message] &c&lСКУПЩИК | &cУ вас нет нужного кол-ва предметов!'
- '[sound] ENTITY_VILLAGER_NO'
left_click_commands:
- '[givemoney] 15'
- '[message] &c&lСКУПЩИК | &fВы продали &7"Уголь х1"&f за&7 15₽'
- '[console] clear %player_name% coal 1'
- '[sound] ENTITY_VILLAGER_TRADE'
- '[refresh]'
right_click_requirement:
requirements:
item_check:
type: has item
material: coal
amount: 64
deny_commands:
- '[message] &c&lСКУПЩИК | &cУ вас нет нужного кол-ва предметов!'
- '[sound] ENTITY_VILLAGER_NO'
right_click_commands:
- '[givemoney] 960'
- '[message] &c&lСКУПЩИК | &fВы продали &7"Уголь х64"&f за&7 960₽'
- '[console] clear %player_name% coal 64'
- '[sound] ENTITY_VILLAGER_TRADE'
- '[refresh]'
# Проверки на СКМ (Наличие Алмаза)
middle_click_requirement:
requirements:
has_money:
type: string equals
input: '%checkitem_mat:coal%'
output: 'yes'
deny_commands:
- '[message] &c&lСКУПЩИК | &cУ вас нет нужного кол-ва предметов!'
- '[sound] ENTITY_VILLAGER_NO'
middle_click_commands:
- '[message] &c&lСКУПЩИК | &fВы продали &7"Уголь х%checkitem_amount_coal%"&f за&7 %math_0_{checkitem_amount_coal}*15%₽'
- '[givemoney] %math_0_{checkitem_amount_coal}*15%'
- '[console] clear %player_name% coal %checkitem_amount_coal%'
- '[sound] ENTITY_VILLAGER_TRADE'
- '[refresh]'