#Deluxemenus

1 messages · Page 1 of 1 (latest)

vivid tulip
#

Hi there,

I'm having trouble with a view requirement not working as expected in my DeluxeMenus configuration. I'm trying to toggle the visibility of a menu item based on two placeholders from the BetterTeams plugin: %betterteams_rank% and %betterteams_open%.

Here's a simplified version of the code:

view_requirement:
requirements:
type: string equals
input: '%betterteams_rank%:%betterteams_open%'
output: 'Owner:true'

Even when I don't meet the requirement (for example, I am not an Owner or the team isn't open), the item is still visible in the menu.

I also tried splitting the requirement into two separate ones, but I couldn't get it to work either.

Is there something wrong with the way I'm using string equals with two placeholders combined with a colon? Or is there a better approach to check both conditions at once?

Any help would be greatly appreciated. Thank you!

Here is the full code
https://paste.helpch.at/doyutegani.less

thin hare
#

these need different priorities

#

also on line 248 you're missing a quotation mark (") before OWNER | Change Description":

#

it needs to be requirements: with an "s"

vivid tulip
#

Thank

vivid tulip
thin hare
#

Does the output like Owner:true have any colors in it? That might be it as well, if so just change your requirement from string equals -> string contains that way its checking the text and not dependent on color as well

vivid tulip
#

nope, that's exactly how I wrote it in the output