#PAPI (empy placeholder)

1 messages · Page 1 of 1 (latest)

honest sedge
#

This placeholder:
%changeoutput_>=_imput:{guilds_tier}_matcher:1_yes_no%

just return me:

yes

#

The %guilds_tier% placeholder is returning an empty Placeholder, so I need to know when that is happening, and I want to change the result (I need this for a "view requirement" of an item in DeluxMenus)

#

If there is another type of solution for this, that would also be great, but I would like to know how to deal with placeholders that only return an empty placeholder

honest sedge
#

PAPI (empy placeholder)

glacial folio
#

%changeoutput_>=_imput:{guilds_tier}_matcher:1_ifmatch:yes_else:no%

glacial folio
#

since there's a chance the output is not a number

#

so it might throw errors

honest sedge
glacial folio
honest sedge
#

.w. oh, that is posible

#

I'll SEE it when i come at home

honest sedge
#

hmmmmm

#

now im using the 1.2.2 version, and doesn't work

#

return me the full placeholder XD

honest sedge
glacial folio
#

oh. I did not see that

honest sedge
#

now i have other error

#

[17:09:56 ERROR]: [DeluxeMenus] Input for comparison requirement is an invalid number: java.lang.NumberFormatException: empty String at jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1842) ~[?:?] at jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110) ~[?:?] at java.lang.Double.parseDouble(Double.java:651) ~[?:?] at com.extendedclip.deluxemenus.requirement.InputResultRequirement.evaluate(InputResultRequirement.java:45) ~[DeluxeMenus-1.13.6-Release.jar:?] at com.extendedclip.deluxemenus.requirement.RequirementList.evaluate(RequirementList.java:21) ~[DeluxeMenus-1.13.6-Release.jar:?] at com.extendedclip.deluxemenus.menu.Menu.lambda$openMenu$5(Menu.java:374) ~[DeluxeMenus-1.13.6-Release.jar:?] at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.19.2.jar:git-Purpur-1762] at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[purpur-1.19.2.jar:git-Purpur-1762] at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[purpur-1.19.2.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?] at java.lang.Thread.run(Thread.java:833) ~[?:?]

glacial folio
#

yes

#

as I've mentioned

#

it will do this

honest sedge
#

this is spaming on the console

glacial folio
#

its because {guilds_tier} returns an empty string ""

honest sedge
#

oh, true, i see

glacial folio
#

which is not a number

honest sedge
#

well, it's working, but it throwing me that error

#

hmmm let me see if Glare see my Suggest to add a result for "no in a Guild" XD

#

to solve this xD

glacial folio
#

your other solution could be javascript.

honest sedge
#

ohhh

#

Since I really don't know anything about those things and javascript is still complex for me, I'll go with that option as my last resort qwq