A
Admincraft•2mo ago
Cleons

I want to be able to display this number as a % value instead of as just the default numbers.

I have tried to do this via the PlaceholderAPI expansion Math, and have not had any luck, as I believe since they are jobs placeholders and not PAPI placeholders it can't format them properly.
No description
25 Replies
Cleons
CleonsOP•2mo ago
Basically, instead of being currentxp/neededxp, I want to display that instead as: Completed: 33% for example. All I really need to do is make it a math equation but due to this being made up of 2 placeholders I am struggling.
Cleons
CleonsOP•2mo ago
Just so the code is also here.
No description
Cleons
CleonsOP•2mo ago
And so what I did with the math extension is also here:
No description
Cleons
CleonsOP•2mo ago
All of this is on the JobsReborn plugin. PAPI/JobsReborn seems to have a pack of placeholders but I'm still struggling with figuring out how to use them
Lunaiskey
Lunaiskey•2mo ago
because jobs reborn's internal placeholders use percentage as their identifier, wouldnt suprise me if you wanna use placeholderapi placeholders you would use curly braces is this working yet? if not try flipping your math placeholder, replacing the outer percentages with curly braces and changing the inner curly braces with percentages
Cleons
CleonsOP•2mo ago
Gonna try this out now - Thank you!
Lunaiskey
Lunaiskey•2mo ago
idk if the config files support placeholders or if they just provide placeholders
Cleons
CleonsOP•2mo ago
No description
Cleons
CleonsOP•2mo ago
what confuses me is actually jobs reborn seems to have papi placeholders - but using them looks like a bit of a pain
Cleons
CleonsOP•2mo ago
No description
Lunaiskey
Lunaiskey•2mo ago
i just quickly had a search of the jobs sourcecode, looks likes it just adds placeholders, it doesnt seem like it actually support them in its configs or whatnot
Cleons
CleonsOP•2mo ago
However I did find an extension which seems to do the same thing but makes them PAPI accessible
Cleons
CleonsOP•2mo ago
PlaceholderAPI | Expansion Cloud
The eCloud > Expansions > Jobs
View, download and manage expansions within the eCloud for the PlaceholderAPI plugin.
Cleons
CleonsOP•2mo ago
This one, but not 100% sure My problem with this though is that it doesn't seem to apply the same placeholders, if that makes sense
Lunaiskey
Lunaiskey•2mo ago
jobs provides placeholders that papi can use, but doesnt support placeholders in their configs
Cleons
CleonsOP•2mo ago
Hm, would there be a roundabout way to make it work?
Lunaiskey
Lunaiskey•2mo ago
youd have to modify the jobs reborn code
Cleons
CleonsOP•2mo ago
yuck lol
Lunaiskey
Lunaiskey•2mo ago
No description
Lunaiskey
Lunaiskey•2mo ago
this is the current supported placeholders
Cleons
CleonsOP•2mo ago
I see
Lunaiskey
Lunaiskey•2mo ago
without modifying the code of the plugin, you cant display the percentage which sucks ig you could make an issue on github requesting the feature but you might be waiting awhile for that
Cleons
CleonsOP•2mo ago
Seeing how little this plugin is already updated, i'll put it in but honestly I expect no response 😂 Thank you for the help though, I appreciate it
Error110
Error110•2mo ago
I mean isnt the bossbar kinda a % indicator anyway it would look more astetic as a % tho
Cleons
CleonsOP•2mo ago
it is, but with higher xp (as shown in my 1st ss) it is quite long, lol being able to show it as a "33% Completed" instead would be much nicer looking imo I've gone ahead and requested it as a change on the Jobs github, so we'll see if I ever get a response lol

Did you find this page helpful?