Вопрос Ошибка с проверкой баланса перед покупкой DeluxeMenu

lsrvnet

Пользователь
Сообщения
1
Плагин
DeluxeMenu
Ядро сервера
  1. Spigot
  2. Paper
Версия сервера
  1. 1.21
Ссылка
https://www.spigotmc.org/resources/deluxemenus.11734/
Не срабатует проверка перед покупкой книг в магазине.



JavaScript:
menu_title: "&f七七七七七七七七勇"
open_command: ce
size: 36
open_commands:
- '[sound] BLOCK_CHEST_OPEN'
items:
      '1':
        material: PAPER
        model_data: 14
        slot: 0
        display_name: '&e'
        lore:
        - '&7'
        slots:
        - 1
        - 2
        - 6
        - 7
        - 8
        - 9
        - 17
        - 18
        - 26
        - 0
        - 21
        - 22
        - 23
      '2':
        material: PAPER
        model_data: 14
        slot: 0
        display_name: '&e'
        lore:
        - '&7'
        slots:
        - 11
        - 12
        - 13
        - 20
        - 24
        - 14
        - 15
        - 3
        - 5
      '3':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzhlYTZkODdlZGE0NjA0ZjYxNGJiZDVkNGRmYTMzZWEwNWZmNTkwZDBhMWNkMmViN2U3Y2NhMWZhMTk3YjQyMiJ9fX0=
        data: 0
        slot: 21
        amount: 1
        priority: 1
        left_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 2000'
        - '[console] crazyenchantments lostbook Common 1 %player_name%'
        - '[close]'
        right_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 2000'
        - '[console] crazyenchantments lostbook Common 1 %player_name%'
        - '[close]'
        left_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 2000'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        right_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 2000'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        display_name: '&a&lᴄᴏᴍᴍᴏɴ'
        lore:
        - '&7Cost: &d2000 ⛁'
        - '&8'
        - '&e ⚗ &fRarity: &e✰&7✰✰'
        - '&8'
        - '&a ✔ &aRight click to buy'
        view_requirement: '%vault_eco_balance_fixed% >= 2000'
      '4':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzhlYTZkODdlZGE0NjA0ZjYxNGJiZDVkNGRmYTMzZWEwNWZmNTkwZDBhMWNkMmViN2U3Y2NhMWZhMTk3YjQyMiJ9fX0=
        data: 0
        slot: 21
        priority: 2
        display_name: '&c&lᴄᴏᴍᴍᴏɴ'
        lore:
        - '&7Cost: &d2000 ⛁'
        - '&8'
        - '&e ⚗ &fRarity: &e✰&7✰✰'
        - '&8'
        - '&c ✘ You can''t afford this'
        left_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
        right_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
      '5':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzBhZjJiM2MyN2FhNmRjMDU0Njc2NjA5OGU4NjczNTgyMmY0ODNiYjgzYjBkMmI5MGQyODEzNDc3NWUyOGNjOCJ9fX0=
        data: 0
        slot: 22
        amount: 1
        priority: 1
        left_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 4000'
        - '[console] crazyenchantments lostbook Rare 1 %player_name%'
        - '[close]'
        right_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 4000'
        - '[console] crazyenchantments lostbook Rare 1 %player_name%'
        - '[close]'
        left_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 4000'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        right_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 4000'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        display_name: '&b&lᴜʟᴛʀᴀ'
        lore:
        - '&7Cost: &d4000 ⛁'
        - '&8'
        - '&e ⚗ &fRarity: &e✰✰&7✰'
        - '&8'
        - '&a ✔ &aRight click to buy'
        view_requirement: '%vault_eco_balance_fixed% >= 4000'
      '6':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzBhZjJiM2MyN2FhNmRjMDU0Njc2NjA5OGU4NjczNTgyMmY0ODNiYjgzYjBkMmI5MGQyODEzNDc3NWUyOGNjOCJ9fX0=
        data: 0
        slot: 22
        priority: 2
        display_name: '&c&lᴜʟᴛʀᴀ'
        lore:
        - '&7Cost: &d4000 ⛁'
        - '&8'
        - '&e ⚗ &fRarity: &e✰✰&7✰'
        - '&8'
        - '&c ✘ You can''t afford this'
        left_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
        right_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
      '7':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWZlNWZjNWM1M2Q1MTllMDc0MDkwNmViYzBmNWQxZmJmODc1MTU3YTQwODUwZjI4YjgxNDE2NjRiNjE4MGFlNCJ9fX0=
        data: 0
        slot: 23
        amount: 1
        priority: 1
        left_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 6000'
        - '[console] crazyenchantments lostbook Legendary 1 %player_name%'
        - '[close]'
        right_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 6000'
        - '[console] crazyenchantments lostbook Legendary 1 %player_name%'
        - '[close]'
        left_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 6000'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        right_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 6000'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        display_name: '&5&lʟᴇɢᴇɴᴅᴀʀʏ'
        lore:
        - '&7Cost: &d6000 ⛁'
        - '&8'
        - '&e ⚗ &fRarity: &e✰✰✰'
        - '&8'
        - '&a ✔ &aRight click to buy'
        view_requirement: '%vault_eco_balance_fixed% >= 6000'
      '8':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWZlNWZjNWM1M2Q1MTllMDc0MDkwNmViYzBmNWQxZmJmODc1MTU3YTQwODUwZjI4YjgxNDE2NjRiNjE4MGFlNCJ9fX0=
        data: 0
        slot: 23
        priority: 2
        display_name: '&c&lʟᴇɢᴇɴᴅᴀʀʏ'
        lore:
        - '&7Cost: &d6000 ⛁'
        - '&8'
        - '&e ⚗ &fRarity: &e✰✰✰'
        - '&8'
        - '&c ✘ You can''t afford this'
        left_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
        right_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
      '11':
        material: PAPER
        model_data: 14
        data: 0
        slot: 4
        left_click_commands:
        - '[player] crazyenchantments info'
        - '[close]'
        right_click_commands:
        - '[player] crazyenchantments info'
        - '[close]'
        display_name: '&d&lᴇɴᴄʜᴀɴᴛᴍᴇɴᴛs ɪɴғᴏʀᴍᴀᴛɪᴏɴ'
        lore:
        - '&7&o(( Preview all enchants and'
        - '&7&oenchantable items. ))'
        - '&8'
        - '&e ❙ &eRight click to open'
      '12':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjI0MDcwYzliNjY1OWVkMjViMmNhMTI2OTE1ZjRkODgyMGZhZmNlNDMyNGVkOWE4ZjRiOGE1MDYzNDUzMDdmIn19fQ==
        data: 0
        slot: 10
        amount: 1
        priority: 1
        left_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 2000'
        - '[console] crazyenchantments scroll white 1 %player_name%'
        - '[close]'
        right_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 2000'
        - '[console] crazyenchantments scroll white 1 %player_name%'
        - '[close]'
        left_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 2000'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        right_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 2000'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        display_name: '&dWhite | Scroll'
        lore:
        - '&7Cost: &d2000 ⛁'
        - '&8'
        - '&7&o(( White scrolls allow you to'
        - '&7&oprotect items from breaking. ))'
        - '&8'
        - '&a ✔ &aRight click to buy'
        view_requirement: '%vault_eco_balance_fixed% >= 2000'
      '13':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjI0MDcwYzliNjY1OWVkMjViMmNhMTI2OTE1ZjRkODgyMGZhZmNlNDMyNGVkOWE4ZjRiOGE1MDYzNDUzMDdmIn19fQ==
        data: 0
        slot: 10
        priority: 2
        display_name: '&cWhite | Scroll'
        lore:
        - '&7Cost: &d2000 ⛁'
        - '&8'
        - '&7&o(( White scrolls allow you to'
        - '&7&oprotect items from breaking. ))'
        - '&8'
        - '&c ✘ You can''t afford this'
        left_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
        right_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
      '14':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDhjNTNiY2U4YWU1OGRjNjkyNDkzNDgxOTA5YjcwZTExYWI3ZTk0MjJkOWQ4NzYzNTEyM2QwNzZjNzEzM2UifX19
        data: 0
        slot: 19
        amount: 1
        priority: 1
        left_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 1000'
        - '[console] crazyenchantments scroll black 1 %player_name%'
        - '[close]'
        right_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 1000'
        - '[console] crazyenchantments scroll black 1 %player_name%'
        - '[close]'
        left_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 1000'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        right_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 1000'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        display_name: '&dBlack | Scroll'
        lore:
        - '&7Cost: &d1000 ⛁'
        - '&8'
        - '&7&o(( Black scrolls allow you to'
        - '&7&otake off random enchantments ))'
        - '&8'
        - '&a ✔ &aRight click to buy'
        view_requirement: '%vault_eco_balance_fixed% >= 1000'
      '15':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDhjNTNiY2U4YWU1OGRjNjkyNDkzNDgxOTA5YjcwZTExYWI3ZTk0MjJkOWQ4NzYzNTEyM2QwNzZjNzEzM2UifX19
        data: 0
        slot: 19
        priority: 2
        display_name: '&cBlack | Scroll'
        lore:
        - '&7Cost: &d1000 ⛁'
        - '&8'
        - '&7&o(( Black scrolls allow you to'
        - '&7&otake off random enchantments ))'
        - '&8'
        - '&c ✘ You can''t afford this'
        left_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
        right_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
      '16':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmFjNTAxM2IyMjdhNDk0ZWMxNmM0ZWFmYWIxZjg0ZGVhNTcyZWZiMmYzYzRiNWMzZmY4ODI1MmYzNTZhMDJiIn19fQ==
        data: 0
        slot: 16
        amount: 1
        priority: 1
        left_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 500'
        - '[console] crazyenchantments dust destroy 1 %player_name%'
        - '[close]'
        right_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 500'
        - '[console] crazyenchantments dust destroy 1 %player_name%'
        - '[close]'
        left_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 500'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        right_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 500'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        display_name: '&dMagic Fixing | Dust'
        lore:
        - '&7Cost: &d500 ⛁'
        - '&8'
        - '&7&o(( Dust allow you to bring'
        - '&7down your &4Destroy Rate&7&o. ))'
        - '&8'
        - '&a ✔ &aRight click to buy'
        view_requirement: '%vault_eco_balance_fixed% >= 500'
      '17':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmFjNTAxM2IyMjdhNDk0ZWMxNmM0ZWFmYWIxZjg0ZGVhNTcyZWZiMmYzYzRiNWMzZmY4ODI1MmYzNTZhMDJiIn19fQ==
        data: 0
        slot: 16
        priority: 2
        display_name: '&4Magic Fixing | Dust'
        lore:
        - '&7Cost: &d500 ⛁'
        - '&8'
        - '&7&o(( Dust allow you to bring'
        - '&7&odown your &4Destroy Rate&7&o. ))'
        - '&8'
        - '&c ✘ You can''t afford this'
        left_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
        right_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
      '18':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzZlNGYxOTZlOTA4YTg2MjM1M2RjYmI4ZWRjNjlmYzZiMGYyODhmMGUyYzRiZWE3MmYwOWJmZjY5ODc1MyJ9fX0=
        data: 0
        slot: 25
        amount: 1
        priority: 1
        left_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 500'
        - '[console] crazyenchantments dust success 1 %player_name%'
        - '[close]'
        right_click_commands:
        - '[sound] ENTITY_PLAYER_LEVELUP'
        - '[console] eco take %player_name% 500'
        - '[console] crazyenchantments dust success 1 %player_name%'
        - '[close]'
        left_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 500'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        right_click_requirement:
          expression: '%vault_eco_balance_fixed% >= 500'
          deny_commands:
          - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
          - '[close]'
        display_name: '&dMagic Angel | Dust'
        lore:
        - '&7Cost: &d500 ⛁'
        - '&8'
        - '&7&o(( Dust allow you to bring'
        - '&7&oup your &aSuccess Rate&7&o. ))'
        - '&8'
        - '&a ✔ &aRight click to buy'
        view_requirement: '%vault_eco_balance_fixed% >= 500'
      '19':
        material: basehead-eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzZlNGYxOTZlOTA4YTg2MjM1M2RjYmI4ZWRjNjlmYzZiMGYyODhmMGUyYzRiZWE3MmYwOWJmZjY5ODc1MyJ9fX0=
        data: 0
        slot: 25
        priority: 2
        display_name: '&cMagic Angel | Dust'
        lore:
        - '&7Cost: &d500 ⛁'
        - '&8'
        - '&7&o(( Dust allow you to bring'
        - '&7&oup your &aSuccess Rate&7&o. ))'
        - '&8'
        - '&c ✘ You can''t afford this'
        left_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
        right_click_commands:
        - '[sound] BLOCK_AMETHYST_BLOCK_BREAK'
        - '[close]'
 
Назад
Сверху Снизу