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"```
#Confused on why this isn't working
1 messages · Page 1 of 1 (latest)
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
In the screenshot, is ON the output of %combatlogx_newbie_helper_pvp_status%?
yes but i tried with on and off. it did not work.
i got it eitherway. instead of type strings equal. i tried strings contain and it worked
Yeah. That makes sense. The reason it didn't work with equals is because the text contains formatting (colors).
And you probably didn't put those in the output.