#PlaceHolder

1 messages · Page 1 of 1 (latest)

tranquil hawk
#

Good evening, is there a requirement placeholder? I'm using the BetterTeams plugin, and I doubt it, but is it possible to link it to a requirement?
For example, if the value of the placeholder %betterteams_money% is below a certain amount, it triggers a deny command.
Thank you!

grizzled latch
#

All requirements support placeholders @tennosei5804

#

Cool, they left ig

tranquil hawk
#

Sorry, a child in my family left the discord servers for no reason 😅

#

for example like this, it doesn't work

    material: LIME_DYE
    slot: 11
    priority: 1
    update: true
    hide_attributes:  true
    display_name: '%betterteams_money%'
    view_requirement:
      requirements:
        kit_requirement:
          type: javascript
          expression: '%betterteams_money% >= 1000'
        kit_perm:
          type: has permission
          permission: essentials.kits.example
    left_click_commands:
      - '[message] test'```
grizzled latch
#

If betterteams_money returns 1,000 for 1000, then yeah, it is expected to not work.

tranquil hawk
#

What does that mean? Sorry, I'm using a translator and I'm having a bit of trouble understanding.
Would it be impossible with BetterTeam?