Вопрос PlaceHolderAPI не работает math

Odinokich

Пользователь
Сообщения
5
Плагин
PlaceHolderapi
Ядро сервера
  1. Paper
Версия сервера
  1. 1.19
Ссылка
https://wiki.placeholderapi.com/
Сделал скупщика
вот код
Форматирование (BB-код):
menu_title: '&0Скупщик руд, уровень: %math_0:0_{mycommand_playerdata_lelv}+0%'
open_command:
- rudseller
size: 45
update_interval: 1
register_command: true
items:
  RED_steklo:
    material: RED_STAINED_GLASS_PANE
    display_name: " "
    slots:
    - 0
    - 1
    - 2
    - 3
    - 4
    - 5
    - 6
    - 7
    - 8
    - 9
    - 18
    - 27
    - 36
    - 37
    - 38
    - 39
    - 40
    - 41
    - 42
    - 43
    - 44
    - 35
    - 26
    - 17
  info:
    material: EXPERIENCE_BOTTLE
    display_name: '&fУровень прокачки скупщика: %math_0:0_{mycommand_playerdata_lelv}+0%'
    lore:
    - ' '
    - ' &0© vk.com/'
    - ''
    - ''
    - ' &d� &fУровень скупщика: &d%math_0:0_{mycommand_playerdata_lelv}+0%'
    - ' &6🔥 &fПродано предметов: &6%math_0:0_{mycommand_playerdata_rsell}%/%math_0:0_{mycommand_playerdata_ram}+640% &7&o(%math_0:0_({mycommand_playerdata_ram}+640)/64% стаков)'
    - ' &a&l$ &fМножитель: &a%math_1:0_{mycommand_playerdata_koef}+1%x'
    - ' '
    - '&f Продавайте предметы и прокачивайте скупщика'
    - '&f Руд и повышайте множитель продажи!'
    - ''
    - ' &aКлик чтобы обновить прокачку скупщика'
    - ''

    update: true
    left_click_requirement:
      requirements:
        TYPE:
          type: javascript
          expression: '%math_0:0_{mycommand_playerdata_rsell}% >= %math_0:0_{mycommand_playerdata_ram}+640%'
          deny_commands:
          - '[message] &4&l⚠ &cВы не продали нужное кол-во руды. &7'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    left_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% koef 0.05'
    - '[console] mycmd-playerdata add_silent %player_name% lelv 1'
    - '[console] mycmd-playerdata remove_silent %player_name% rsell %math_0:0_{mycommand_playerdata_ram}+640%'
    - '[console] mycmd-playerdata add_silent %player_name% ram 320'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    slot: 4
  coal:
    material: COAL
    slot: 20
    lore:
    - ''
    - ' &fЦена за 1шт: &a%math_2:0_0.09*({mycommand_playerdata_koef}+1)%$'
    - ' &fЦена за 16шт: &a%math_2:0_0.09*16*({mycommand_playerdata_koef}+1)%$'
    - ''
    - ' &cЛКМ&f чтобы продать &61 шт.'
    - ' &cПКМ&f чтобы продать &616 шт.'
    - ' &cCКМ&f чтобы продать &6всё.'
    - ''

    - ''
    left_click_requirement:
      requirements:
        type:
          type: has item
          material: "COAL"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    right_click_requirement:
      requirements:
        type:
          type: has item
          material: "COAL"
          amount: 16
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    middle_click_requirement:
      requirements:
        type:
          type: has item
          material: "COAL"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    left_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 0.5'
    - '[console] minecraft:clear %player_name% coal 1'
    - '[console] eco give %player_name% %math_2:0_0.09*({mycommand_playerdata_koef}+1)%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    right_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 18'
    - '[console] minecraft:clear %player_name% coal 16'
    - '[console] eco give %player_name% %math_2:0_0.09*16*({mycommand_playerdata_koef}+1)%' 
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    middle_click_commands:
    - '[console] eco give %player_name% %math_2:0_0.09*{checkitem_amount_mat:coal}*({mycommand_playerdata_koef}+1)%' 
    - '[console] mycmd-playerdata add_silent %player_name% rsell %checkitem_amount_mat:coal%'
    - '[console] minecraft:clear %player_name% coal %checkitem_amount_mat:coal%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
  redstone:
    material: REDSTONE
    slot: 21
    lore:
    - ''
    - ' &fЦена за 1шт: &a%math_2:0_0.05*({mycommand_playerdata_koef}+1)%$'
    - ' &fЦена за 16шт: &a%math_2:0_0.05*16*({mycommand_playerdata_koef}+1)%$'
    - ''
    - ' &cЛКМ&f чтобы продать &61 шт.'
    - ' &cПКМ&f чтобы продать &616 шт.'
    - ' &cCКМ&f чтобы продать &6всё.'
    - ''

    - ''
    left_click_requirement:
      requirements:
        type:
          type: has item
          material: "REDSTONE"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    right_click_requirement:
      requirements:
        type:
          type: has item
          material: "REDSTONE"
          amount: 16
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    middle_click_requirement:
      requirements:
        type:
          type: has item
          material: "REDSTONE"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    left_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 0.5'
    - '[console] minecraft:clear %player_name% redstone 1'
    - '[console] eco give %player_name% %math_2:0_0.05*({mycommand_playerdata_koef}+1)%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    right_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 8'
    - '[console] minecraft:clear %player_name% redstone 16'
    - '[console] eco give %player_name% %math_2:0_0.05*16*({mycommand_playerdata_koef}+1)%' 
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    middle_click_commands:
    - '[console] eco give %player_name% %math_2:0_0.05*{checkitem_amount_mat:redstone}*({mycommand_playerdata_koef}+1)%' 
    - '[console] mycmd-playerdata add_silent %player_name% rsell %math_1:0_{checkitem_amount_mat:redstone}/2%'
    - '[console] minecraft:clear %player_name% redstone %checkitem_amount_mat:redstone%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
  lapis_lazuli:
    material: lapis_lazuli
    slot: 22
    lore:
    - ''
    - ' &fЦена за 1шт: &a%math_2:0_0.03*({mycommand_playerdata_koef}+1)%$'
    - ' &fЦена за 16шт: &a%math_2:0_0.03*16*({mycommand_playerdata_koef}+1)%$'
    - ''
    - ' &cЛКМ&f чтобы продать &61 шт.'
    - ' &cПКМ&f чтобы продать &616 шт.'
    - ' &cCКМ&f чтобы продать &6всё.'
    - ''

    - ''
    left_click_requirement:
      requirements:
        type:
          type: has item
          material: "LAPIS_LAZULI"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    right_click_requirement:
      requirements:
        type:
          type: has item
          material: "LAPIS_LAZULI"
          amount: 16
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    middle_click_requirement:
      requirements:
        type:
          type: has item
          material: "LAPIS_LAZULI"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    left_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 0.5'
    - '[console] minecraft:clear %player_name% lapis_lazuli 1'
    - '[console] eco give %player_name% %math_2:0_0.03*({mycommand_playerdata_koef}+1)%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    right_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 8'
    - '[console] minecraft:clear %player_name% lapis_lazuli 16'
    - '[console] eco give %player_name% %math_2:0_0.03*16*({mycommand_playerdata_koef}+1)%' 
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    middle_click_commands:
    - '[console] eco give %player_name% %math_2:0_0.03*{checkitem_amount_mat:lapis_lazuli}*({mycommand_playerdata_koef}+1)%' 
    - '[console] mycmd-playerdata add_silent %player_name% rsell %math_1:0_{checkitem_amount_mat:lapis_lazuli}/2%'
    - '[console] minecraft:clear %player_name% lapis_lazuli %checkitem_amount_mat:lapis_lazuli%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
  iron_ingot:
    material: IRON_INGOT
    slot: 23
    lore:
    - ''
    - ' &fЦена за 1шт: &a%math_2:0_0.41*({mycommand_playerdata_koef}+1)%$'
    - ' &fЦена за 16шт: &a%math_2:0_0.41*16*({mycommand_playerdata_koef}+1)%$'
    - ''
    - ' &cЛКМ&f чтобы продать &61 шт.'
    - ' &cПКМ&f чтобы продать &616 шт.'
    - ' &cCКМ&f чтобы продать &6всё.'
    - ''

    - ''
    left_click_requirement:
      requirements:
        type:
          type: has item
          material: "IRON_INGOT"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    right_click_requirement:
      requirements:
        type:
          type: has item
          material: "IRON_INGOT"
          amount: 16
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    middle_click_requirement:
      requirements:
        type:
          type: has item
          material: "IRON_INGOT"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    left_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 1'
    - '[console] minecraft:clear %player_name% iron_ingot 1'
    - '[console] eco give %player_name% %math_2:0_0.41*({mycommand_playerdata_koef}+1)%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    right_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 16'
    - '[console] minecraft:clear %player_name% iron_ingot 16'
    - '[console] eco give %player_name% %math_2:0_0.41*16*({mycommand_playerdata_koef}+1)%' 
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    middle_click_commands:
    - '[console] eco give %player_name% %math_2:0_0.41*{checkitem_amount_mat:iron_ingot}*({mycommand_playerdata_koef}+1)%' 
    - '[console] mycmd-playerdata add_silent %player_name% rsell %checkitem_amount_mat:iron_ingot%'
    - '[console] minecraft:clear %player_name% iron_ingot %checkitem_amount_mat:iron_ingot%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
  gold_ingot:
    material: GOLD_INGOT
    slot: 24
    lore:
    - ''
    - ' &fЦена за 1шт: &a%math_2:0_0.64*({mycommand_playerdata_koef}+1)%$'
    - ' &fЦена за 16шт: &a%math_2:0_0.64*16*({mycommand_playerdata_koef}+1)%$'
    - ''
    - ' &cЛКМ&f чтобы продать &61 шт.'
    - ' &cПКМ&f чтобы продать &616 шт.'
    - ' &cCКМ&f чтобы продать &6всё.'
    - ''

    - ''
    left_click_requirement:
      requirements:
        type:
          type: has item
          material: "GOLD_INGOT"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    right_click_requirement:
      requirements:
        type:
          type: has item
          material: "GOLD_INGOT"
          amount: 16
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    middle_click_requirement:
      requirements:
        type:
          type: has item
          material: "GOLD_INGOT"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    left_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 1'
    - '[console] minecraft:clear %player_name% gold_ingot 1'
    - '[console] eco give %player_name% %math_2:0_0.64*({mycommand_playerdata_koef}+1)%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    right_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 16'
    - '[console] minecraft:clear %player_name% gold_ingot 16'
    - '[console] eco give %player_name% %math_2:0_0.64*16*({mycommand_playerdata_koef}+1)%' 
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    middle_click_commands:
    - '[console] eco give %player_name% %math_2:0_0.64*{checkitem_amount_mat:gold_ingot}*({mycommand_playerdata_koef}+1)%' 
    - '[console] mycmd-playerdata add_silent %player_name% rsell %checkitem_amount_mat:gold_ingot%'
    - '[console] minecraft:clear %player_name% gold_ingot %checkitem_amount_mat:gold_ingot%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
  diamond:
    material: DIAMOND
    slot: 30
    lore:
    - ''
    - ' &fЦена за 1шт: &a%math_2:0_1.27*({mycommand_playerdata_koef}+1)%$'
    - ' &fЦена за 16шт: &a%math_2:0_1.27*16*({mycommand_playerdata_koef}+1)%$'
    - ''
    - ' &cЛКМ&f чтобы продать &61 шт.'
    - ' &cПКМ&f чтобы продать &616 шт.'
    - ' &cCКМ&f чтобы продать &6всё.'
    - ''

    - ''
    left_click_requirement:
      requirements:
        type:
          type: has item
          material: "DIAMOND"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    right_click_requirement:
      requirements:
        type:
          type: has item
          material: "DIAMOND"
          amount: 16
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    middle_click_requirement:
      requirements:
        type:
          type: has item
          material: "DIAMOND"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    left_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 1'
    - '[console] minecraft:clear %player_name% diamond 1'
    - '[console] eco give %player_name% %math_2:0_1.27*({mycommand_playerdata_koef}+1)%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    right_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 16'
    - '[console] minecraft:clear %player_name% diamond 16'
    - '[console] eco give %player_name% %math_2:0_1.27*16*({mycommand_playerdata_koef}+1)%' 
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    middle_click_commands:
    - '[console] eco give %player_name% %math_2:0_1.27*{checkitem_amount_mat:diamond}*({mycommand_playerdata_koef}+1)%' 
    - '[console] mycmd-playerdata add_silent %player_name% rsell %checkitem_amount_mat:diamond%'
    - '[console] minecraft:clear %player_name% diamond %checkitem_amount_mat:diamond%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
  emd:
    material: EMERALD
    slot: 31
    lore:
    - ''
    - ' &fЦена за 1шт: &a%math_2:0_1.51*({mycommand_playerdata_koef}+1)%$'
    - ' &fЦена за 16шт: &a%math_2:0_1.51*16*({mycommand_playerdata_koef}+1)%$'
    - ''
    - ' &cЛКМ&f чтобы продать &61 шт.'
    - ' &cПКМ&f чтобы продать &616 шт.'
    - ' &cCКМ&f чтобы продать &6всё.'
    - ''

    - ''
    left_click_requirement:
      requirements:
        type:
          type: has item
          material: "EMERALD"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    right_click_requirement:
      requirements:
        type:
          type: has item
          material: "EMERALD"
          amount: 16
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    middle_click_requirement:
      requirements:
        type:
          type: has item
          material: "EMERALD"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    left_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 1'
    - '[console] minecraft:clear %player_name% emerald 1'
    - '[console] eco give %player_name% %math_2:0_1.51*({mycommand_playerdata_koef}+1)%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    right_click_commands:
    - '[console] eco give %player_name% %math_2:0_0.17*{checkitem_amount_mat:coal}*({mycommand_playerdata_koef}+1)%' 
    - '[console] mycmd-playerdata add_silent %player_name% rsell 16'
    - '[console] minecraft:clear %player_name% emerald 16'
    - '[console] eco give %player_name% %math_2:0_1.51*16*({mycommand_playerdata_koef}+1)%' 
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    middle_click_commands:
    - '[console] eco give %player_name% %math_2:0_1.51*{checkitem_amount_mat:emerald}*({mycommand_playerdata_koef}+1)%' 
    - '[console] mycmd-playerdata add_silent %player_name% rsell %checkitem_amount_mat:emerald%'
    - '[console] minecraft:clear %player_name% emerald %checkitem_amount_mat:emerald%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
  ningot:
    material: NETHERITE_INGOT
    slot: 32
    lore:
    - ''
    - ' &fЦена за 1шт: &a%math_2:0_6.76*({mycommand_playerdata_koef}+1)%$'
    - ' &fЦена за 16шт: &a%math_2:0_6.76*16*({mycommand_playerdata_koef}+1)%$'
    - ''
    - ' &cЛКМ&f чтобы продать &61 шт.'
    - ' &cПКМ&f чтобы продать &616 шт.'
    - ' &cCКМ&f чтобы продать &6всё.'
    - ''

    - ''
    left_click_requirement:
      requirements:
        type:
          type: has item
          material: "NETHERITE_INGOT"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    right_click_requirement:
      requirements:
        type:
          type: has item
          material: "NETHERITE_INGOT"
          amount: 16
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    middle_click_requirement:
      requirements:
        type:
          type: has item
          material: "NETHERITE_INGOT"
          amount: 1
          deny_commands:
          - '[message] &cСкупщик: у вас нету данной руды!'
          - '[sound] ENTITY_WANDERING_TRADER_NO'
    left_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 1'
    - '[console] minecraft:clear %player_name% netherite_ingot 1'
    - '[console] eco give %player_name% %math_2:0_6.76*({mycommand_playerdata_koef}+1)%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    right_click_commands:
    - '[console] mycmd-playerdata add_silent %player_name% rsell 16'
    - '[console] minecraft:clear %player_name% netherite_ingot 16'
    - '[console] eco give %player_name% %math_2:0_6.76*16*({mycommand_playerdata_koef}+1)%' 
    - '[sound] ENTITY_WANDERING_TRADER_YES'
    middle_click_commands:
    - '[console] eco give %player_name% %math_2:0_6.76*{checkitem_amount_mat:netherite_ingot}*({mycommand_playerdata_koef}+1)%' 
    - '[console] mycmd-playerdata add_silent %player_name% rsell %checkitem_amount_mat:netherite_ingot%'
    - '[console] minecraft:clear %player_name% netherite_ingot %checkitem_amount_mat:netherite_ingot%'
    - '[sound] ENTITY_WANDERING_TRADER_YES'
но в игре Math не работает сам placeholder скачал через команду /papi
 
Назад
Сверху Снизу