#Showing item with only one out of two view_requirements

1 messages · Page 1 of 1 (latest)

versed oasis
#

Hey, first of all.
I'm trying to make a menu where it shows all your Plots with different items based on whether it's claimed, can be claimed or exceeds you claim limit. Now I'm stuck on the item whether the plot can be claimed, in the code its: plot3Allowed.
With my current .yml the menu always displays the "can be claimed" item although the two requirements are not fulfilled.
It should display the item when the %plotsquared_allowed_plot_count% is "Infinite" or greater than the current plot count.

I have the required placeholders downloaded and papi reloaded.

Here is part of my menu: https://paste.helpch.at/divilicuda.yaml

Does anyone know why it's acting so weird?
Thanks in advance! :)

Info:

  • DM-Version: DeluxeMenus-1.13.7-Release
  • PAPI-Version: PlaceholderAPI-2.11.3
  • Server: git-Paper-550 (MC: 1.19.4) (Implementing API version 1.19.4-R0.1-SNAPSHOT)
hollow lava
# versed oasis Hey, first of all. I'm trying to make a menu where it shows all your Plots with ...

There's 2 reasons I can think the requirements might fail.

  1. would be that the output parameter doesn't parse colors so then &7 would need to be replaced with §7.
  2. would be that the javascript requirement fails because it doesn't detect the placeholder as a number so you would need to change it to: 'parseInt("%plotsquared_allowed_plot_count%") >= 3'

Try both of these and if none work, come back and let me know.

versed oasis
#

Thanks for the suggestions but nope, none of them worked. Still the "can buy" icon showing although %plotsquared_allowed_plot_count% is 2 so none of them should be true, right?