zMenu
zMenu copied to clipboard
[Suggestion] Add requirements for PlayerDatas
Hello, Would it be possible to add a requirement with the player datas system ?
requirements:
- type: data
key: "KEY"
value: "VALUE"
And for the invert:
requirements:
- type: !data
key: "KEY"
value: "VALUE"
you can pretty much already do this with the placeholders for playerdata.
- type: placeholder
placeholder: "%zmenu_player_value_lockout%name%%"
value: "false"
action: CONTAINS_STRING
you can pretty much already do this with the placeholders for playerdata.
- type: placeholder placeholder: "%zmenu_player_value_lockout%name%%" value: "false" action: CONTAINS_STRING
Yes, I know it's possible like that, but I was looking for a way to avoid the cachePlaceholderAPI in some cases to do faster actions.
you can pretty much already do this with the placeholders for playerdata.
- type: placeholder placeholder: "%zmenu_player_value_lockout%name%%" value: "false" action: CONTAINS_STRINGYes, I know it's possible like that, but I was looking for a way to avoid the
cachePlaceholderAPIin some cases to do faster actions.
ah fair enough, from my experiance playing with it this playerdata lookup via placeholders was already way more reliable and faster than say checking a permission node ( that needs a menu refresh currently )