#PAPI (empy placeholder)
1 messages · Page 1 of 1 (latest)
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
I get this result when I try to put it in my Menu
https://paste.helpch.at/vinuhebogi.sql
this is the item:
https://paste.helpch.at/lunotekawe.cs
PAPI (empy placeholder)
well first of all, I'm pretty sure this placeholder is wrong
%changeoutput_>=_imput:{guilds_tier}_matcher:1_ifmatch:yes_else:no%
But for this you might not be able to use just the changeoutput expansion
since there's a chance the output is not a number
so it might throw errors
I try this way but, it's returns me "ifmatch:yes"
what version of changeoutput do you have?
hmmmmm
now im using the 1.2.2 version, and doesn't work
return me the full placeholder XD
i delete the expansion and download it again
oh, is "input" XD
oh. I did not see that
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) ~[?:?]
this is spaming on the console
.
its because {guilds_tier} returns an empty string ""
oh, true, i see
which is not a number
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
your other solution could be javascript.