Вопрос Помогите с Deluxemenu с проверками

Ядро
Paper

VISUALSTUDIO

Пользователь
Сообщения
12
Плагин
DeluxeMenu
Ядро сервера
  1. Paper
Версия сервера
  1. 1.21
Ссылка
https://www.spigotmc.org/resources/deluxemenus.11734/
Помогите пожалуйста с проверками нужно чтобы когда инвентарь был полон предмет выпадал или предмет менялся на Barrier и писало Предмет не доступен у вас полон инвентарь, перерыл весь инет все проверки бахал нифига не получилось плейсходеры загружал если что
вот конфиг:
YAML:
menu_title: '&f七七七七七七七'
open_command: assorti
register_command: true
size: 54
open_commands:
- "[sound] BLOCK_ENDER_CHEST_OPEN 0.7 0.7"

items:

  'elitra':
    material: ELYTRA
    slot: 20
    display_name: '&dэлитᴘы'
    lore:
    - '&7'
    - ' &7▪ &fцᴇʜᴀ: &6&l450,000 &7ᴍᴏʜᴇт'
    - '&7'
    - ' &7▪ &fᴇᴄли иʜʙᴇʜтᴀᴘь пᴏлᴏʜ, пᴘᴇдᴍᴇт ʜᴇ ʙыдᴀᴄтᴄя!'
    - '&7'
    - ' &a▪ &fʜᴀжᴍи &aлᴋᴍ &fдля пᴏᴋупᴋи'
    - '&7'
    item_flags:
    - HIDE_ATTRIBUTES
    left_click_requirement:
      requirements:
        has_money:
          type: '>='
          input: '%vault_eco_balance%'
          output: '450000'
      deny_commands:
      - '[refresh]'
      - '[sound] ENTITY_VILLAGER_NO'
      - '[message] &c❌ у ʙᴀᴄ ʜᴇдᴏᴄтᴀтᴏчʜᴏ ᴍᴏʜᴇт! ʜужʜᴏ 450,000.'
    left_click_commands:
    - '[console] eco take %player_name% 450000'
    - '[console] give %player_name% elytra 1'
    - '[close]'
    - '[message] &a✅ ʙы ᴋупили элитᴘы зᴀ 450,000 ᴍᴏʜᴇт!'

  'firework':
    material: FIREWORK_ROCKET
    slot: 21
    amount: 64
    display_name: '&fȹᴇйᴇᴘʙᴇᴘᴋ (уᴘᴏʙᴇʜь 1)'
    lore:
    - '&7'
    - ' &7▪ &fцᴇʜᴀ: &6&l200,000 &7ᴍᴏʜᴇт'
    - '&7'
    - ' &7▪ &fᴇᴄли иʜʙᴇʜтᴀᴘь пᴏлᴏʜ, пᴘᴇдᴍᴇт ʜᴇ ʙыдᴀᴄтᴄя!'
    - '&7'
    - ' &a▪ &fʜᴀжᴍи &aлᴋᴍ &fдля пᴏᴋупᴋи'
    - '&7'
    left_click_requirement:
      requirements:
        has_money:
          type: '>='
          input: '%vault_eco_balance%'
          output: '200000'
      deny_commands:
      - '[refresh]'
      - '[sound] ENTITY_VILLAGER_NO'
      - '[message] &c❌ у ʙᴀᴄ ʜᴇдᴏᴄтᴀтᴏчʜᴏ ᴍᴏʜᴇт! ʜужʜᴏ 200,000.'
    left_click_commands:
    - '[console] eco take %player_name% 200000'
    - '[console] give %player_name% firework_rocket 64'
    - '[close]'
    - '[message] &a✅ ʙы ᴋупили ȹᴇйᴇᴘʙᴇᴘᴋ зᴀ 200,000 ᴍᴏʜᴇт!'

  'exp_bottle':
    material: EXPERIENCE_BOTTLE
    slot: 22
    amount: 64
    display_name: '&eбутылᴏчᴋᴀ ᴏпытᴀ'
    lore:
    - '&7'
    - ' &7▪ &fцᴇʜᴀ: &6&l95,000 &7ᴍᴏʜᴇт'
    - '&7'
    - ' &7▪ &fᴇᴄли иʜʙᴇʜтᴀᴘь пᴏлᴏʜ, пᴘᴇдᴍᴇт ʜᴇ ʙыдᴀᴄтᴄя!'
    - '&7'
    - ' &a▪ &fʜᴀжᴍи &aлᴋᴍ &fдля пᴏᴋупᴋи'
    - '&7'
    left_click_requirement:
      requirements:
        has_money:
          type: '>='
          input: '%vault_eco_balance%'
          output: '95000'
      deny_commands:
      - '[refresh]'
      - '[sound] ENTITY_VILLAGER_NO'
      - '[message] &c❌ у ʙᴀᴄ ʜᴇдᴏᴄтᴀтᴏчʜᴏ ᴍᴏʜᴇт! ʜужʜᴏ 95,000.'
    left_click_commands:
    - '[console] eco take %player_name% 95000'
    - '[console] give %player_name% experience_bottle 64'
    - '[close]'
    - '[message] &a✅ ʙы ᴋупили бутылᴏчᴋи ᴏпытᴀ зᴀ 95,000 ᴍᴏʜᴇт!'

  'golden_apple':
    material: GOLDEN_APPLE
    slot: 23
    amount: 16
    display_name: '&fзᴏлᴏтыᴇ яблᴏᴋи'
    lore:
    - '&7'
    - ' &7▪ &fцᴇʜᴀ: &6&l160,000 &7ᴍᴏʜᴇт'
    - '&7'
    - ' &7▪ &fᴇᴄли иʜʙᴇʜтᴀᴘь пᴏлᴏʜ, пᴘᴇдᴍᴇт ʜᴇ ʙыдᴀᴄтᴄя!'
    - '&7'
    - ' &a▪ &fʜᴀжᴍи &aлᴋᴍ &fдля пᴏᴋупᴋи'
    - '&7'
    left_click_requirement:
      requirements:
        has_money:
          type: '>='
          input: '%vault_eco_balance%'
          output: '160000'
      deny_commands:
      - '[refresh]'
      - '[sound] ENTITY_VILLAGER_NO'
      - '[message] &c❌ у ʙᴀᴄ ʜᴇдᴏᴄтᴀтᴏчʜᴏ ᴍᴏʜᴇт! ʜужʜᴏ 160,000.'
    left_click_commands:
    - '[console] eco take %player_name% 160000'
    - '[console] give %player_name% golden_apple 16'
    - '[close]'
    - '[message] &a✅ ʙы ᴋупили 16 зᴏлᴏтыx яблᴏᴋ зᴀ 160,000 ᴍᴏʜᴇт!'

  'enchanted_golden_apple':
    material: ENCHANTED_GOLDEN_APPLE
    slot: 24
    amount: 2
    display_name: '&bзᴀчᴀᴘᴏʙᴀʜʜыᴇ яблᴏᴋи'
    lore:
    - '&7'
    - ' &7▪ &fцᴇʜᴀ: &6&l90,000 &7ᴍᴏʜᴇт'
    - '&7'
    - ' &7▪ &fᴇᴄли иʜʙᴇʜтᴀᴘь пᴏлᴏʜ, пᴘᴇдᴍᴇт ʜᴇ ʙыдᴀᴄтᴄя!'
    - '&7'
    - ' &a▪ &fʜᴀжᴍи &aлᴋᴍ &fдля пᴏᴋупᴋи'
    - '&7'
    left_click_requirement:
      requirements:
        has_money:
          type: '>='
          input: '%vault_eco_balance%'
          output: '90000'
      deny_commands:
      - '[refresh]'
      - '[sound] ENTITY_VILLAGER_NO'
      - '[message] &c❌ у ʙᴀᴄ ʜᴇдᴏᴄтᴀтᴏчʜᴏ ᴍᴏʜᴇт! ʜужʜᴏ 90,000.'
    left_click_commands:
    - '[console] eco take %player_name% 90000'
    - '[console] give %player_name% enchanted_golden_apple 2'
    - '[close]'
    - '[message] &a✅ ʙы ᴋупили 2 зᴀчᴀᴘᴏʙᴀʜʜыx яблᴏᴋᴀ зᴀ 90,000 ᴍᴏʜᴇт!'

  'golden_carrot':
    material: GOLDEN_CARROT
    slot: 29
    amount: 16
    display_name: '&fзᴏлᴏтᴀя ᴍᴏᴘᴋᴏʙᴋᴀ'
    lore:
    - '&7'
    - ' &7▪ &fцᴇʜᴀ: &6&l55,000 &7ᴍᴏʜᴇт'
    - '&7'
    - ' &7▪ &fᴇᴄли иʜʙᴇʜтᴀᴘь пᴏлᴏʜ, пᴘᴇдᴍᴇт ʜᴇ ʙыдᴀᴄтᴄя!'
    - '&7'
    - ' &a▪ &fʜᴀжᴍи &aлᴋᴍ &fдля пᴏᴋупᴋи'
    - '&7'
    left_click_requirement:
      requirements:
        has_money:
          type: '>='
          input: '%vault_eco_balance%'
          output: '55000'
      deny_commands:
      - '[refresh]'
      - '[sound] ENTITY_VILLAGER_NO'
      - '[message] &c❌ у ʙᴀᴄ ʜᴇдᴏᴄтᴀтᴏчʜᴏ ᴍᴏʜᴇт! ʜужʜᴏ 55,000.'
    left_click_commands:
    - '[console] eco take %player_name% 55000'
    - '[console] give %player_name% golden_carrot 16'
    - '[close]'
    - '[message] &a✅ ʙы ᴋупили 16 зᴏлᴏтыx ᴍᴏᴘᴋᴏʙᴏᴋ зᴀ 55,000 ᴍᴏʜᴇт!'

  'ender_pearl':
    material: ENDER_PEARL
    slot: 30
    amount: 16
    display_name: '&fэʜдᴇᴘ-пᴇᴘлы'
    lore:
    - '&7'
    - ' &7▪ &fцᴇʜᴀ: &6&l50,000 &7ᴍᴏʜᴇт'
    - '&7'
    - ' &7▪ &fᴇᴄли иʜʙᴇʜтᴀᴘь пᴏлᴏʜ, пᴘᴇдᴍᴇт ʜᴇ ʙыдᴀᴄтᴄя!'
    - '&7'
    - ' &a▪ &fʜᴀжᴍи &aлᴋᴍ &fдля пᴏᴋупᴋи'
    - '&7'
    left_click_requirement:
      requirements:
        has_money:
          type: '>='
          input: '%vault_eco_balance%'
          output: '50000'
      deny_commands:
      - '[refresh]'
      - '[sound] ENTITY_VILLAGER_NO'
      - '[message] &c❌ у ʙᴀᴄ ʜᴇдᴏᴄтᴀтᴏчʜᴏ ᴍᴏʜᴇт! ʜужʜᴏ 50,000.'
    left_click_commands:
    - '[console] eco take %player_name% 50000'
    - '[console] give %player_name% ender_pearl 16'
    - '[close]'
    - '[message] &a✅ ʙы ᴋупили 16 эʜдᴇᴘ-пᴇᴘлᴏʙ зᴀ 50,000 ᴍᴏʜᴇт!'

  'chorus_fruit':
    material: CHORUS_FRUIT
    slot: 31
    amount: 32
    display_name: '&fxᴏᴘуᴄ'
    lore:
    - '&7'
    - ' &7▪ &fцᴇʜᴀ: &6&l70,000 &7ᴍᴏʜᴇт'
    - '&7'
    - ' &7▪ &fᴇᴄли иʜʙᴇʜтᴀᴘь пᴏлᴏʜ, пᴘᴇдᴍᴇт ʜᴇ ʙыдᴀᴄтᴄя!'
    - '&7'
    - ' &a▪ &fʜᴀжᴍи &aлᴋᴍ &fдля пᴏᴋупᴋи'
    - '&7'
    left_click_requirement:
      requirements:
        has_money:
          type: '>='
          input: '%vault_eco_balance%'
          output: '70000'
      deny_commands:
      - '[refresh]'
      - '[sound] ENTITY_VILLAGER_NO'
      - '[message] &c❌ у ʙᴀᴄ ʜᴇдᴏᴄтᴀтᴏчʜᴏ ᴍᴏʜᴇт! ʜужʜᴏ 70,000.'
    left_click_commands:
    - '[console] eco take %player_name% 70000'
    - '[console] give %player_name% chorus_fruit 32'
    - '[close]'
    - '[message] &a✅ ʙы ᴋупили 32 xᴏᴘуᴄᴀ зᴀ 70,000 ᴍᴏʜᴇт!'

  'totem':
    material: TOTEM_OF_UNDYING
    slot: 32
    amount: 1
    display_name: '&eтᴏтᴇᴍ бᴇᴄᴄᴍᴇᴘтия'
    lore:
    - '&7'
    - ' &7▪ &fцᴇʜᴀ: &6&l200,000 &7ᴍᴏʜᴇт'
    - '&7'
    - ' &7▪ &fᴇᴄли иʜʙᴇʜтᴀᴘь пᴏлᴏʜ, пᴘᴇдᴍᴇт ʜᴇ ʙыдᴀᴄтᴄя!'
    - '&7'
    - ' &a▪ &fʜᴀжᴍи &aлᴋᴍ &fдля пᴏᴋупᴋи'
    - '&7'
    left_click_requirement:
      requirements:
        has_money:
          type: '>='
          input: '%vault_eco_balance%'
          output: '200000'
      deny_commands:
      - '[refresh]'
      - '[sound] ENTITY_VILLAGER_NO'
      - '[message] &c❌ у ʙᴀᴄ ʜᴇдᴏᴄтᴀтᴏчʜᴏ ᴍᴏʜᴇт! ʜужʜᴏ 200,000.'
    left_click_commands:
    - '[console] eco take %player_name% 200000'
    - '[console] give %player_name% totem_of_undying 1'
    - '[close]'
    - '[message] &a✅ ʙы ᴋупили тᴏтᴇᴍ бᴇᴄᴄᴍᴇᴘтия зᴀ 200,000 ᴍᴏʜᴇт!'

  # ====== ᴋʜᴏпᴋи зᴀᴋᴘытия ======

  'close_48':
    material: AIR
    slot: 48
    display_name: " "
    click_commands:
    - '[close]'

  'close_49':
    material: AIR
    slot: 49
    display_name: " "
    click_commands:
    - '[close]'

  'close_50':
    material: AIR
    slot: 50
    display_name: " "
    click_commands:
    - '[close]'
 
Последнее редактирование модератором:
Назад
Сверху Снизу