#Confused on why this isn't working

1 messages · Page 1 of 1 (latest)

frosty otter
#
    material: DIAMOND_SWORD
    slot: 10
    priority: 1
    update: true
    display_name: "&aPvP Toggle"
    lore:
      - "&7Your PvP is currently: &aENABLED"
      - "&7Click to disable."
    left_click_commands:
      - "[player] pvp"
      - "[refresh]"
    view_requirement:
      requirements:
        pvp_on:
          type: string equals
          input: "%combatlogx_newbie_helper_pvp_status%"
          output: "true"
  'pvpno':
    material: BARRIER
    slot: 10
    priority: 2
    update: true
    display_name: "&cPvP Toggle"
    lore:
      - "&7Your PvP is currently: &cDISABLED"
      - "&7Click to enable."
    left_click_commands:
      - "[player] pvp"
      - "[refresh]"
    view_requirement:
      requirements:
        pvp_off:
          type: string equals
          input: "%combatlogx_newbie_helper_pvp_status%"
          output: "false"```
#

it shows when i remove the view requirement.
i mean it doesn't work like how i want it to just shows the first priority item and ignore second

oblique panther
frosty otter
#

i got it eitherway. instead of type strings equal. i tried strings contain and it worked

oblique panther
#

And you probably didn't put those in the output.

frosty otter
#

i put them &aON and &cOFF with no avail

#

but since it worked with contain. i couldn't careless why it didnt work