#placeholder-api

150650 messages · Page 102 of 151

wheat coyote
#

sorry to interrupt you guys but, is there any way to go from this the time format 4w 3d 1h 2m 50s to just 30d 1h 5m for example without javascript?

arctic loom
#

Maybe try it in the console?
/papi parse --null %math_0_{bungee_lobby-duels-htjm4vup}+{bungee_lobby-duels-vvmcvbkt}+{bungee_lobby-duels-eb3hb4el}%

exotic bloom
#

I did it in console

arctic loom
#

hm....

exotic bloom
#

it says 0

arctic loom
#

🤷‍♂️

#

Maybe the placeholders return 0? Idk.

exotic bloom
#

yeah

#

theres 0 people on it

#

im currently on my build battle server thats probs why

arctic loom
#

yes, because 0+0+0 is obviously 0

exotic bloom
#

yh

trim mist
#

I didn't even think about VV limiting it for older versions. Nice find.

exotic bloom
#

so is there no way to fix it?

trim mist
#

Well if you're hitting the limit on 1.8.8 then not without probably shortening the names of the placeholders

#

Or seeing if there's something in the VV config

mint fable
#

your issue is: when you try to put a super long command in chat, it doesn't work

#

the placeholder works fine

#

try to actually use it where you want it and see if it works there

#

If you run into a limit on a scoreboard, might have to find a different plugin that parses the placeholder before trying to add it to the scoreboard or something not really sure on that front

#

I didn't have time to say this earlier before work

wheat coyote
#

is there a way to fix or change the time format of luckperms expiry time placeholders?

ornate matrix
wraith parrot
#

i want connect essentials and deluxmenu

#

and i want do homes in gui

stone charm
#

Script does not work with placeholders.

#

%skript_worldname::{player}%

#

Always displayed as N/A.

#

Extended-skippy_NOjwIyx This is also installed.

#

skript ver 2.6.3

molten crypt
#

anyone know how to make %statistic_kill_entity:Ender_Dragon% to be as a leaderboard?
Like it would state
Top players with their names and kills?

vivid sparrow
molten crypt
#

but its in esc>Statistics

viscid orbit
#

what's the time placeholder?

#

but not time of the server, time of players

#

Not played time. The time.. but for each timezone

ionic fossil
#

hello is there a top player hearts expansion?

static shard
#

Can I math placeholders? like
Example: %bungee_Lobby% + %bungee_Lobby2% to get result as 20

exotic bloom
exotic bloom
exotic bloom
#

oh my bad

river mango
#

vault doens't wanna work 😦
says %vault_eco_balance_formatted%

wide reef
#

like you asked whats wrong? but we dont know whats wrong so we cant help you without more information

wraith parrot
#

nothing ,when i write /home nothing was done

#

no open gui

wide reef
#

try doing /dm open menuname

#

i dont know what you called it

wraith parrot
#

it doesn't open the gui either

wide reef
#

what does it say when you try to?

wraith parrot
#

nothing

wide reef
#

does your console say anything when you try to open it?

wraith parrot
#

no

wide reef
#

so just nothing?

#

did you register the menu?

wraith parrot
#

yes

wide reef
#

and when you do /dm reload does it say that it registered your menu successfully?

wraith parrot
#

yes

wide reef
#

and it shows up on /dm list

wraith parrot
#

yes

wide reef
#

just ctrl + a the file

wraith parrot
#

this?

wide reef
#

yes

wraith parrot
#

before in input i had input: "%essentials_home_1%"

wide reef
wraith parrot
#

why?

wide reef
#

i have no idea why its a problem

#

it just doesnt like it when it cant load any items

#

because the view requirements failed

wraith parrot
#

so what can i do?

wide reef
wraith parrot
#

gui opened but nothing there i mean this shulker

wide reef
wraith parrot
#

oh

austere hawk
#

14:08:33 [WARNING] Error enabling plugin PlaceholderAPI
java.lang.NoClassDefFoundError: org/bukkit/plugin/java/JavaPlugin
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:44)
at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:37)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
at net.md_5.bungee.api.plugin.PluginManager.enablePlugin(PluginManager.java:329)
at net.md_5.bungee.api.plugin.PluginManager.loadPlugins(PluginManager.java:237)
at net.md_5.bungee.BungeeCord.start(BungeeCord.java:436)
at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:32)
at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
Caused by: java.lang.ClassNotFoundException: org.bukkit.plugin.java.JavaPlugin
at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:63)
at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:37)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

#

help me guy

vivid sparrow
#

@austere hawk did you read only half of the response received in #development ? PAPI doesn't support bungeecord or any type of proxy.

orchid copper
#

Hi

tender vaporBOT
orchid copper
#

Its java 8 and 1.8.8 paper .-. sry barry but not rly helpful

vivid sparrow
#

the bot gave you the answer, you need java 16 to run that expansion

orchid copper
#

which expansion?

#

ah playerstatsexpansion

#

its fixed now thanks Pikachu

toxic wolf
mint fable
#

I think it's been superseded by playerlist

molten junco
#

generally i have a problem that when i try to use parseother
then all of a sudden I start to extend the wait time to open the gui to 30-60s
Something's broken again now

Prior to that, there were heads with priority:1 - That is, as if information that no one occupies the current place for the present moment

tender vaporBOT
molten junco
#

oh sorry ;D

mint fable
#

Have you tested how jobsr_user_isin_miner functions if the user is offline?

molten junco
#

You know what, the problem is that nothing is showing up for me at the moment so this is it

#

I fixed it and now this is what it is

#

But in the top 1 it does not show because it is occupied by the player

molten junco
#

input: '%parseother_{ajlb_lb_jobsr_user_jlevel_miner_1_alltime_name}_{jobsr_user_isin_miner}%'

#

am i okay here?

molten junco
tender vaporBOT
wheat coyote
#

is there a way to do days countdown with papi?

sharp jay
wheat coyote
sharp jay
#

look up mastercooldowns

wheat coyote
sharp jay
#

or something

wheat coyote
#

yes maybe, i need to do some research

past briar
#

I try running the command /papi ecloud download skript and it says theres no skript expansion found anybody have an idea on this? mc 1.17.1 papi 2.11.2

wet basinBOT
#

@sharp jay Unknown expansion.

past briar
#

ill try the manual download

sharp jay
#

yup

past briar
# sharp jay yup

it comes back with {"Detail": "Expansion does not exist.", "Error": 1}

sharp jay
#

oh may have been taken down

vivid sparrow
#

The updated one is skippy or some shit iirc

sharp jay
#

ya

past briar
#

oh okay that works thanks is there a way to use in game commands with this website or do i have to manually download

vivid sparrow
#

why dont you try

past briar
#

I already tried the default command but I was asking if there were alternative methods but I guess not

shy laurel
#

Why do expansions lose verification upon posting a new version? is each version manually verified?

vivid sparrow
#

@deep hollow is the js expansion performing better now?

tender vaporBOT
shy laurel
#

and maybe add some context

#

but from what it looks like, you are using a bungeecord expansion, but the expansion is not registering the plugin channel.

#

Are you by chance using ExploitFixer?

#

assuming you are using the expansion Bungee v2.0, I don't see anything wrong. maybe another plugin is interfering?

#

for now I would suggest removing the bungee expansion that is causing your issue

deep hollow
tender vaporBOT
deep hollow
#

but the only issue is that I can't install it on my skyblock (1.8.8), as this javascript expansion only works on java 11+

#

and 1.8.8 doesn't support java 11

vivid sparrow
#

I think that with paper you can use java 11

deep hollow
#

I've taco spigot and I'm getting this when starting it on java 11

vivid sparrow
#

welp, SystemUtils probably doesn't know about java 11

deep hollow
#

I've java 11 on my prison (1.12.2 ) and it's working fine

#

so it should be a taco issue right?

vivid sparrow
#

yeah it is, looks like someone has opened an issue on their repo in 2018 but got no reply

#

and I do believe taco is abandoned?

deep hollow
#

yeah I think so

#

but don't know too many 1.8.8 forks

vivid sparrow
#

why don't you update to at least 1.12.2?

#

or even latest, it should be fine for skyblock since there's no land to generate

deep hollow
#

Yeah but latest isn't well optimized in terms of fps for people who doesn't have a very good pc

#

as my playerbase it's from south-america/spain

#

so economy in these countries doesn't help

vivid sparrow
#

then 1.12.2? it works just like 1.8

#

idk is just a suggestion

deep hollow
#

yeah 1.12.2 could be the best way to go

vivid sparrow
#

im just saying that without custom software, you won't get much from 1.8.8 😬

deep hollow
#

much appreciated your help

#

and you know some 1.12.2 fork?

vivid sparrow
#

No problem, I'm glad we figured this out, js expansion is used a lot

deep hollow
#

yeah, js is used a lot on my server and helped me to fix many things without using custom plugins

vivid sparrow
#

perhaps paper, huh?

deep hollow
#

but I mean something like purpur on 1.19.x, but on 1.12.2

#

I heard that paper on 1.19.x isn't working well, so maybe there's a fork on 1.12.2 that works better than paper

vivid sparrow
#

paper or other forks perform just fine, you just need to use the right plugins, options, have a good host etc.

deep hollow
#

okay okay, thanks!

keen yarrow
#

Hey! :)
Is there a way to get all players that are currently online one by one?
Something like %player_1% %player_2%... and if there are 20 online players rn player_21 would be empty etc.

#

I found PlayerList but that just outputs ALL players at once, but i need something that outputs player by player - maybe sorted after letter or sorted after when they joined or whatever. Or maybe i am stupid and braindead and didn't really understand

#

I'd like to use this in DeluxeMenus or BetonQuest to display all current online users

keen yarrow
#

Ah oh i can /papi parse me %playerlist_online,normal,yes,0%

coral dome
#

hey i have a question about placeholder
VotingPlugin_Top_Month_1
thats the user name but i dont see a value
placeholder
?
do you guys have one ?

coral dome
#

i just asked him too

severe tangle
#

Can i do something to limit my balance number to just 2 digits instead of this?:

#

Well, i can't place screenshots

#

but its basically something like 30.71769999999999997

#

Currently using %vault_eco_balance% placeholder

sharp jay
#

yes

#

%vault_eco_balance_formatted%
or
%vault_eco_balance_fixed%

#

one of these may work

severe tangle
#

Okok, i go try

#

brb real quick

#

This one actually worked %vault_eco_balance_formatted%, did not try the other one

#

tyvm

sharp jay
#

kk

#

🙂

wheat coyote
#

is it possible to only get seconds to reach the date with %server_countdown_<SimpleDateFormat>_<time>%?

vivid sparrow
#

No, the date must match the time format

peak crystal
#

Sure, when you open the menu you see the '5Hours' in the first slot, with all the provided attributes, when you click it and have enough playtime you should see '5HoursPurchased', then you will see the next playtime reward, and that reward should be claimable if you meet the requirements, but instead the %statistic_time_played:hours% will be reset back to 0 everytime you claim a new item.

peak crystal
#

My bad

small dirge
#

Hello!

I love the RNG placeholder that selects a random player.

However, I was wondering if there was a way to summon that randomly selected player again.

Or if there's a better alternative to selecting a random player and then selecting that same previous player again in a separate command.

Thank you!

mint fable
#

not what SHOULD happen

fair cobalt
#

What would cause an Expansion to show hooked but not show up in the /papi ecloud list installed?

#

Our {deluxetag_tag} placeholder is not working with ChatManager any longer.
https://paste.helpch.at/vokuhibeni

Also, is there a way to see which hooks need to be updated as it keeps telling me there are 4 that need updating but I am unsure how to know which need updating. Thanks!

mint fable
mint fable
mint fable
coarse lily
#

somethings wrong with my %statistic_mine_block%, i just break 1 block but its increse by 2

tranquil owl
#

I have a problem, scripts do not run, kernel version is 1.16.5, I use java 16

[17:24:34 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: example [17:24:34 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: region [17:24:34 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: flags [17:24:34 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: owners [17:24:34 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: members [17:24:34 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: prefix [17:24:34 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: group [17:24:34 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: suffix [17:24:34 WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: clan

tranquil owl
#

@carmine veldt

deep hollow
#

Hey, someone knows if there's a way of removing uses left with checkitem expansion on the inhand item?

willow pewter
#

I've installed the expansions and added the servers to the config.yml in PAPI

tender vaporBOT
stoic pagoda
#

I want to create a playtime placeholder. Should I use onRequest or onPlaceholderRequest?

stone edge
#

onPlaceholderRequest

stoic pagoda
stone edge
#

what?

stoic pagoda
#

Will the placeholder be individual and not global?

stone edge
#

Depends on the code

stoic pagoda
#

So that everyone will see their own playtime

stone edge
#

thats not related to the method used

#

but to the code you make

stoic pagoda
#

No idea how to make that code tbh

stone edge
#

Then thats something you need to learn (java)

#

you must have java knowledge to code plugins/expansions

#

this is not a configurator thing

stoic pagoda
#

Are there any example codes?

stone edge
#

iirc yes

#

search papi github

stoic pagoda
#

alright one sec

#

then it doesnt show any examples for individual things

stone edge
#

idk what's "individual" thing

#

onPlaceholderRequest is called every time the identifier is detected

#

its up to you if you want to make your placeholder to return something "global"

#

in which case you dont care is player (p) is null or not

#

or "individual" things, in which p must be not null

verbal adder
#

Hey, is there a placeholder that displays the player's ping?

mint fable
#

%player_ping%

verbal adder
mint fable
#

probably?

#

not really sure

#

can you connect to external ip?

verbal adder
#

Not really, I haven't even got that set up yet. Literally just made this server an hour ago

mint fable
#

I believe I was testing a ping placeholder and found it failed on localhost but can't remember which

verbal adder
#

Okay, no problem.

#

The players will obviously report it if it doesn't work

mint fable
#

wait that wasn't ping...

vivid sparrow
#

Pinger?

verbal adder
#

Nope, just player_ping is what I'm testing. It's just blank right now though

vivid sparrow
#

Weird

#

But yeah, on a live server will not be empty

mint fable
#

nah I think I was actually looking at ips and timezones

#

completely different

#

lol

vivid sparrow
#

Well, they should work just fine xD

mint fable
#

ya I was finding the timezone was failing because it was testing 127.0.0.1 as an ip for a timezone when using localhost

#

took me a while to figure out lol

vivid sparrow
#

Ah yes, ups

crude zinc
#

Hi! i need help im lost with your supports -_-

#

i dont know which support is right

mint fable
#

What do you need support for? @crude zinc

crude zinc
#

for me server

mint fable
#

Is it related to the plugin PlaceholderAPI?

crude zinc
#

welll

#

no but

#

its dumb question but how to make me server popular?

mint fable
crude zinc
#

...........

mint fable
#

I am not a marketing genius 😂

crude zinc
#

why that?

#

hmmmmmmmmmm

mint fable
#

Why? because it's most suited for that channel

crude zinc
#

you got point there

mint fable
#

this channel is for help related to placeholderapi

crude zinc
#

ok 🙂

#

and 🙂

mint fable
#

wish you luck

crude zinc
#

ok ty 🙂

#

see you later!

#

o yeah

#

i forgoot

#

what dos placeholder doo?

#

i didn't tri it out jet

mint fable
#

provides an api for plugins/expansions to create placeholders that can be used in places like scoreboards, menus, chat, etc.

tender vaporBOT
tender vaporBOT
fair cobalt
#

oh sorry, i meant to turn that off :/

mint fable
#

also type /papi parse me %deluxetags_tag% what does that return

mint fable
#

so I'm not sure why it stopped working in chatmanager

fair cobalt
#

oh boy, well I appreciate you taking a look - I messaged them last night as well... and am just awaiting a response

mint fable
#

gl

fair cobalt
#

ty so much <3

mint fable
#

ask them to add papi support 😉

#

easy to do!

fair cobalt
#

i mean they have it on their wiki how to enter it for deluxetags..smh

mint fable
#

ya, it's specific for deluxetags, weird

#

imo

fair cobalt
mint fable
#

?startuplog

tender vaporBOT
mint fable
#

send that over i'll see if any errors

#

not that I can fix it

#

unless the beta you're using doesn't have that fix for some reason

#

oh wait 3.9.0

fair cobalt
#

Yeah, I tried downgrading as well - still doesn't work

mint fable
#

no way

#

yeye

fair cobalt
tender vaporBOT
fair cobalt
#

ignore all the model engine and mythicmob errors 😅

mint fable
#

wait chatmanager does support papi placeholders?

#

it also says it hooks into deluxetags just fine...

#

what if you try %deluxetags_tag%

fair cobalt
#

Yeah, that's what I was saying before, they have it on their wiki..

#

I already tried that too xD

mint fable
#

I didn't see papi on the wiki at least

#

I saw {deluxetag_tag}

#

which is not papi

fair cobalt
#

oh well I don't know if I know the difference between papi and placeholder api lol

mint fable
#

the papi one provided by deluxetags plugin itself is %deluxetags_tag%

#

papi = placeholder api

#

p api

#

chatmanager has their OWN placeholder specifically for deluxetags {deluxetag_tag}

#

but it also says it hooks into placeholder, but that might be just to PROVIDE placeholders, not use them

fair cobalt
#

omg i didn't try %deluxetags_tag% after downgrading, it worked!

mint fable
#

nice!

austere hawk
#

Congrats.

fair cobalt
#

haha

mint fable
#

so it supports it, I might have missed that onn the wiki or they didn't have it

fair cobalt
#

they don't have %deluxetags_tag% on their wiki, they have {deluxetag_tag}

mint fable
#

aha it's in the FAQ

mint fable
fair cobalt
#

yeah definitely

mint fable
#

also they link to the wrong link

#

smh

fair cobalt
#

hahaha

#

welcome to chat manager xD

fair cobalt
#

you know i can't remember why we switched from deluxechat tbh

mint fable
#

no longer a plugin

#

deprecated

fair cobalt
#

oh

#

lol

mint fable
#

tbh i'd use something simple, maybe simplechat eeven exists

tender vaporBOT
mint fable
#

lol

#

nop

#

o well

fair cobalt
#

i'll take a peak

#

thanks so much for your help!!

mint fable
#

i randomly found that fyi

fair cobalt
#

yeah it's 1.16 lol

verbal adder
#

So I'm using %server_tps_15_colored%, but it's always showing 20 tps in the server tab, even when I purposely lag the server

vivid sparrow
#

15 means 15m ago iirc

verbal adder
#

Ohh xD

sick sinew
#

hi , i was trying to add year and months and weeks played by a player on my scoreboard , im lost trying to do it , any help please?

sick sinew
#

it doest show it

austere hawk
sick sinew
#

[14:01:05 INFO]: [PlaceholderAPI] Successfully registered expansion: essentials [1.5.1]
[14:01:05 INFO]: [PlaceholderAPI] Successfully registered expansion: player [2.0.3]
[14:01:05 WARN]: [PlaceholderAPI] Cannot load expansion playertime due to a missing plugin: PlayerTime
[14:01:05 INFO]: [PlaceholderAPI] Successfully registered expansion: server [2.6.1]

austere hawk
sick sinew
#

do u mind giving me a link to it , im not sure exactly wich one...

sick sinew
#

ok

#

all good thanks

#

love u

#

now it only shows til weeks , any idea how to show how many years too?

wheat coyote
raw mica
#

I created a mod with the api and i put it in the plugins folder

#

but doesn't work

vivid sparrow
#

What?

raw mica
#

Solved

novel rapids
#

How do I make an account? Registering is locked.

#

Who should I contact

austere hawk
#

yo is there a placeholder that grabs like fun facts or quotes and returns it in a placeholder that updates every so often? or I can make it manually if possible?

full wedge
balmy marten
novel rapids
tender vaporBOT
real parrot
#

(CheckItem expansion) When using %checkitem_getinfo:mainhand_enchantments:sharpness% (or any other enchantment) with item in hand that have CustomModelData and dont have any enchantment it returns "An internal error occured while attempting to perform this command"

real parrot
stable roost
#

Is Pinger fixed or still broken?

#

Need a way of getting playercounts from other servers (Not on the same bungeecord)

mint fable
#

Thank you for letting us know 👍

real parrot
#

Is there any other way how to check enchantment level of item in hand?

mint fable
real parrot
#

Now it works

mint fable
#

and if you enchant it?

#

and by chance, could you test enchanted books?

#

i mean...

#

it should be fine

#

no reason for it not to be fine 😂

real parrot
#

everything is ok

#

And "fun" fact: if player can "execute" placeholder (usually by typing it in warp or clan description) they can get any item if server have CheckItem expansion. (Probably I should not say that...)

mint fable
#

there is an option to disable give/removing items in the config

tired verge
#

Hey! Does anyone know why eCloud wont let me download the papi JavaScript expansion?

#

It shows an error message like: "Failed to find an expansion named JavaScript"

mint fable
#

has to be done manually

tired verge
cunning lodge
#

hello

#

how can i put spaces between _ _

#

%cmi_server_time_d M_GMT+3%

#

i want to make like that

warm plover
#

I'm trying to parse a string replacement of a specific character of a string using nested, though this isn't using the deluxemenus placeholder, it's just taking the second char of deluxemenus. Any idea how I could nest this?%nested_{string_replacecharacters_color-url_string_charAt_2_deluxemenus_meta_costumeChestplateColor_STRING_FFFFFF}%

mint fable
#

maybe add a number to it?

#

%nested_3_

#

might need to do it once more

#

or i might be misunderstanding, a lot going on lol

warm plover
#

Yeah I've tried that, I'm not sure where to put the curly brackets though

#

Every combination of brackets I put is either WAY too many strings, or just the letter "l"

mint fable
#

do you want to parse the meta first?

warm plover
#

Mmm no

#

So basically, I want to parse the letter "F" out of that placeholder

#

Just that one letter F

mint fable
#

so you have to parse it first

warm plover
#

And that letter F is going to replace itself into a base64 code

mint fable
#

ye ye

#

so umm

#

nested doesn't quite work this way I don't think

#

basically how nested works is

#

%nested_3_javascript_player% for example

#

%javascript_player% returns leaderboard_player_1

warm plover
#

I could have sworn I've used it this way in the past though, not with this exact method but just in general

mint fable
#

then, nested parses that again

#

%nested_2_leaderboard_player_1%

#

for some reason, in this case, leaderboard_player_1 also returns a placeholder, let's say player_name

#

then it's just like parsing %player_name%

mint fable
#

because I think it should do what you say, but I think it doesn't

#

@junior musk made it if they're around

warm plover
#

yeah nested confuses the heck out of me lol

junior musk
#

hi

pseudo cipher
#

[22:32:29 ERROR]: [PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: net/ess3/api/IEssentials
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1770) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1760) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: net/ess3/api/IEssentials
at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
at java.lang.Class.privateGetDeclaredMethods(Class.java:3434) ~[?:?]
at java.lang.Class.getDeclaredMethods(Class.java:2536) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:413) ~[?:?]

junior musk
pseudo cipher
junior musk
#

from what I understood, you may not even need my expansion
%string_replacecharacters_color-url_string_charAt_2_{deluxemenus_meta_costumeChestplateColor_STRING_FFFFFF}%

mint fable
# junior musk hi

would nested work in a fashion seen above? they want to parse deluxemenus_meta.. first, then string_charat... then string_replacechar...

junior musk
#

yeah it would, but I think the String expansion can already do it on its own

#

not sure

mint fable
#

ooh would be nice

#

if it didn't need {} around the input

junior musk
#

but if it doesn't, then yeah use the Nested expansion, just add nested_ between the first % and string_...

mint fable
#

hmm, so it will parse string_charat before string_replacecharacters?

#

confuses me

junior musk
#

oh

#

I didn't notice that

mint fable
#

ye

warm plover
#

I have returned

junior musk
#

so it has 2 string placeholders

mint fable
#

yep

warm plover
#

Yes

junior musk
#

alright then yeah you need Nested

#

%nested_string_replacecharacters_color-url_{string_charAt_2_{deluxemenus_meta_costumeChestplateColor_STRING_FFFFFF}}%

warm plover
#

An internal error occurred while attempting to perform this command

junior musk
#

show the console error

warm plover
mint fable
#

i seee

#

wtf

#

then

mint fable
#

i'm crazy

warm plover
#

🤣

mint fable
#

%javascript_test% returns %player_name% which returns a player's name
%nested_javascript_test% or %nested_2_javascript_test% will be parsed 2 times, it will first be parsed into %player_name% and then parsed again into the player's name.

junior musk
#

so it parses everything once

#

then it parses the output

#

and it parses the output's output again

mint fable
#

so it does inner most, AND what i described

#

ohhh

#

I get it

junior musk
#

yup

mint fable
#

good to know

junior musk
#

for example, if you have %placeholder_1% which returns %placeholder_2% which returns %placeholder_3% which returns %placeholder_4% which returns hi, with %nested_3_placeholder_1% it will output %placeholder_4%, if you change the 3 to 4, it will output hi

warm plover
#

oh what

mint fable
#

sick

junior musk
warm plover
#

1.3.1

#

I pressed download latest from here, not sure if thats the right version or not

junior musk
#

yeah it is

#

welp, looks like I didn't fix it as I thought I did

tender vaporBOT
coarse lily
#

checkitem expansion error. For example i have a full stock of pickaxes (36 items), equip armor (4 items) and 6 gold ingot in my hand, so %checkitem_amount_gold_ingot% should be displayed as 6. But no, all items that i mean 46 (36 pickaxes, equip armor, 6 gold ingot in hand)

mint fable
#

you're using it incorrectly

#

%checkitem_amount_mat:gold_ingot%

coarse lily
#

My mistake, I haven't researched it properly

mint fable
#

all good

coarse lily
#

how to make it possible - '[console] eco give %player_name% %math_0_{deluxemenus_meta_itemSellPrice_STRING}*{checkitem_amount_mat:{deluxemenus_meta_itemSell_STRING}}%'

mint fable
#

i don't think it'll be possible without a custom javascript

#

I was just looking at the Nested expansion, but it seems broken atm

coarse lily
mint fable
#

Yes it would be

#

Unfortunately, you will need a custom javascript to parse that many placeholders the way you're wanting to

#

I ended up making my own custom javascripts when making a shop in deluxemenus

#

then I ended up making an expansion, later turned full plugin

#

because javascript created lag

coarse lily
#

poor me, im not a programer

mint fable
coarse lily
mint fable
#

it's a very niche thing I feel

#

the deluxemenus themselves are customizable, just requires a little bit of work

coarse lily
#

i just need thing like your sell and buy system

mint fable
mint fable
#

some javascripts there

#

ik you're not a programmer, but not sure how much you know/don't know

#

maxitems maxpurchase probably similar to what you want

coarse lily
#

i just can't do sellall

mint fable
#

it sets multiple placeholders in a row

#

you have to do the same thing

#

hell you could even use the math placeholder if you wanted to

mint fable
#
var mat = "%deluxemenus_meta_itemSell_STRING%";
var price = "%deluxemenus_meta_itemSellPrice_STRING%";
var amount = PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%"+"checkitem_amount_mat:"+mat+"%");
(parseFloat(price)*parseInt(amount)).toFixed();

here, try this

#

wrote it up for ya

tender vaporBOT
mint fable
#

to even use the javascript expansion you have to download it manually from the ecloud this

mint fable
#

It's smart to use the deluxemenus meta to store the item and price

#

I like that

#

@buoyant hawk take a look at that

#

pretty neat idea vs args

#

although not sure if meta works on the version you use

buoyant hawk
#

i will look at it

#

thankss

mint fable
#

yep, remember you don't have to 😉

buoyant hawk
#

obviously

coarse lily
#

lastest papi but dont have JavaScript expansion 😐

coarse lily
#

idk why i cant download it

#

i typed j and it just showout JetsPrisonMines

mint fable
coarse lily
mint fable
#

it's not verified, that's why I said you have to manually download it

coarse lily
#

HTTP ERROR 404 Not Found

#

please give me this expansion link

junior musk
#

@warm plover You don't know how much I hate working on this expansion x)

#

I think I've finally found the issue

#

because of 1 word

#

1h30 for 1 word

#

try it

#

I've tried with %nested_string_replacecharacters_small-numbers_{world_players_{player_world}}% and it worked fine, so your %nested_string_replacecharacters_color-url_{string_charAt_2_{deluxemenus_meta_costumeChestplateColor_STRING_FFFFFF}}% should work too

mint fable
#

hmm so this should work for math stuff too hopefully

junior musk
#

it does

#

well

#

I guess

mint fable
#

[console] eco give %player_name% %math_0_{deluxemenus_meta_itemSellPrice_STRING}*{checkitem_amount_mat:{deluxemenus_meta_itemSell_STRING}}%

junior musk
#

any placeholder

#

yeah

mint fable
#

2 or 3?

junior musk
#

I took an hour and half just to figure out that I was using HashMap which doesn't save the order of items you input in it, instead of using LinkedHashMap

mint fable
#

bruh

#

every time

mint fable
#

6 characters

junior musk
#

don't put any number

mint fable
#

well 0 is 2

#

ye

junior musk
#

just nested_math...

#

no need for a number

#

well you can do 1, it'll work the same

mint fable
#

Try this too @coarse lily [console] eco give %player_name% %nested_math_0_{deluxemenus_meta_itemSellPrice_STRING}*{checkitem_amount_mat:{deluxemenus_meta_itemSell_STRING}}%

mint fable
#

because if this works, I will be using nested 200%

#

verified it will be

junior musk
#

I'm updating it on the ecloud

coarse lily
#

must i download nested expansion ?

junior musk
#

download the file and put it in your expansions folder in your PlaceholderAPI folder

warm plover
coarse lily
#

?paste

tender vaporBOT
coarse lily
junior musk
#

f

#

I wanna die

#

I'll check it

coarse lily
#

when use papi parse

tender vaporBOT
coarse lily
coarse lily
#

Javascript-Expansion
Last Success N/A
Last Failure N/A
Last Duration N/A

mint fable
#

why are you there

mint fable
mint fable
cunning lodge
#

Hey

#

anyon

#

e

#

how can i put spaces between _ _
%cmi_server_time_d M_GMT+3%
i want to make like that

coarse lily
#

%cmi_server_time_d_M_GMT+3% maybe

coarse lily
cunning lodge
mint fable
#

what does putting a space do

#

just not parse?

mint fable
#

ah, what if you test it in /papi parse me %cmi...

#

i wonder if it's the scoreboard or not

cunning lodge
#

its scoreboard

mint fable
#

oof

#

what about

cunning lodge
mint fable
#

oh it's not screoboard?

#

it seems that cmi is the one having the issues

#

can you just use regular server time?

#

does that work

#

%server_time_<SimpleDateFormat>%

#

because spaces work in placeholders

cunning lodge
#

still same

mint fable
#

IF NOT: my next idea was using the ascii expansion for a space inside the cmi expansion

#

idk if it'll work

mint fable
#

just makin sure

coarse lily
#

CJ

#

i set item price 2.5 and it showout 3

cunning lodge
#

yes

mint fable
#

what's the javascript again

#

can you send it here

coarse lily
#

maybe from 2.5 -> 2.9 will be the same

mint fable
cunning lodge
#

how can i make space?

mint fable
#

make sense?

mint fable
#

so {ascii_32} in the cmi

#

try it out

#

if it doesn't work, try the server time one

cunning lodge
#

didn't work

#
  • '&7 &7%cmi_server_time_d/MMM_{ascii_32}YYYY-m:K_GMT+3%'
#

this is code

mint fable
#

/papi parse me s%ascii_32%s

cunning lodge
mint fable
#

ah, what about the %server_time one

cunning lodge
mint fable
mint fable
#

or did it return the date with {ascii_32} in the middle of it

cunning lodge
#

it returned

mint fable
cunning lodge
#

without {ascii_32}

mint fable
cunning lodge
mint fable
#

fuckin donuts

#

wtf

#

i wonder if spaces are just

#

ya idk if it's gonna be possible

#

maybe a custom javascript

coarse lily
#

🙂

mint fable
coarse lily
#

yes

mint fable
#

nice

coarse lily
#

but my shop have a small problem

#

:L

mint fable
#

?

coarse lily
#

ex: im buying some type of item, im full inventory and 63 items of buying item in offhand

#

and i can buy 2 more of this item

#

it's a waste

mint fable
#

what is your buy menu

#

?paste

tender vaporBOT
mint fable
#

fyi I have to go soon

coarse lily
#

%deluxemenus_meta_itemBuy_STRING%, click grass block = buying grass block

mint fable
#

can you send the menu @coarse lily

#

the problem will lie in the requirement

copper juniper
#

anyone know how to fix npcs that arent displaying the number for monthly top voter and monthly top donator? it's with voting plugin and buycraft api

coarse lily
mint fable
#

so if your inventory is entirely full except for 1 single item, it still allows you to make the purchase?

junior musk
#

I hate my self

#

it's the EXACT same issue

#

but with a different map

#

WHYYYYY

mint fable
#

it shouldn't be allowing you to make any purchase unless you have a full empty slot

#

even if your last slot only had 1 item in it

coarse lily
#

hmm, maybe another custom javascript

mint fable
#

type /papi parse me %player_empty_slots%

junior musk
mint fable
#

when you have full inventory (should say 0)

#

and when you have full inventory-1 item (should say 0)

#

and when you have full inventory-1 stack (should say 1)

coarse lily
#

how to delete expansion fast 😐

mint fable
# junior musk please tell me this works

remember this was for [console] eco give %player_name% %nested_math_0_{deluxemenus_meta_itemSellPrice_STRING}*{checkitem_amount_mat:{deluxemenus_meta_itemSell_STRING}}% @coarse lily

junior musk
#

yeah

mint fable
#

have to stop server to delete expansion

junior musk
#

that's what I tested

mint fable
#

or rename it the same name and /papi reload

mint fable
#

I gotta go to work now tho

mint fable
#

6 characters

#

the worst

copper juniper
coarse lily
mint fable
#

put 2 instead of 0 at the start

coarse lily
#

oh, its work 🙂

mint fable
#

nice!

#

nested is huuuuge

coarse lily
#

congratulations @junior musk

mint fable
#

@junior musk verified

coarse lily
#

im going back to my 'small' problem

mint fable
coarse lily
#

should i just use mathematics with js

coarse lily
junior musk
junior musk
warm plover
#

Seems to work! Thank you!

#

Heck yeee I can finally make this dumb menu lol

indigo geyser
#

I need a placeholder that will say if the server is online or offline

tender vaporBOT
mint fable
#

with those 3 different scenarios

mint fable
#

really like the idea of using the meta Tran, thanks for that one for sure

#

always used to use arguments but it's a little less secure, and with nested now it's possible to use meta placeholders without needing javascript!

upper zenith
#

How can I round a placeholder to the nearest int?

vivid sparrow
#

math maybe? %math_0_ROUND({placeholder})%

upper zenith
coarse lily
#

why javascript expansion don't work anymore

tender vaporBOT
coarse lily
vivid sparrow
#

@upper zenith try to add ,0 after the placeholder

#

Or FLOOR / CEILING if they do what you want (round down / up)

timber cargo
#
  • "&fRank: %changeoutput_exact_input:{luckperms_in_group_default}_matcher:yes_ifmatch:&7Speler_else:{luckperms_prefix}%" can anyone help me why this isnt working?
#

ping me

stone edge
#

Have you tried using

#

/papi parse me %luckperms_group%

#

To see what it returns

#

Additionally, why not using meta prefix?

vivid sparrow
#

I don't think the group can ever be empty

stone edge
#

It cant

#

It will always return default if not in a group

mint fable
#

javascript broken?

worthy spoke
#

How do I know how many players have a certain permission? (even for offline ones)

timber cargo
stone edge
stone edge
timber cargo
#

but if i try to do it like i did above he used the &7 to color the rest of the line how to fix that

#

&fRank: %changeoutput_exact_input:{luckperms_in_group_default}_matcher:yes_ifmatch:&7Speler_else:{luckperms_prefix}%

#

this fixed it

stone edge
#

Its weird, afaik it should return default group mmm

verbal adder
#

Okay, so %player_ping% is not working for anyone. It's just blank in the TAB.

#

Do I need to install a papi or ecloud thing?

exotic bloom
exotic bloom
#

Do /papi parse me %player_ping%

verbal adder
exotic bloom
#

Oh idk then

#

Maybe try restarting then thats all i got

unborn dagger
#

hi, i wanna use javascript expansion, but i got this message
[19:34:14 INFO]: Failed to find an expansion named: javascript

wide reef
#

you can find the link to the ecloud on the placeholderapi spigot page

#

search javascript, download the jar file and put it in plugins/plaveholderapi/expansions

unborn dagger
#

okay

novel rapids
#

haven’t gotten a response about how to create an account. i have an expansion ready to publish

balmy marten
novel rapids
#

Yeah lemme get it on GitHub rq

balmy marten
mint fable
#

All of those placeholder are already available via the Player and the Server expansion this

#

Also fyi you do not need a plugin.yml for an expansion

novel rapids
#

Alright

empty glen
#

hey uh

#

is there a placeholderapi that help replace empty return with a desired preset return?

#

WOOOOO

mint fable
empty glen
#

thank you so much\

vivid sparrow
#

@brittle wadi /papi dump and send the link here

brittle wadi
#

Sure give me 1 sec

vivid sparrow
#

And you have nashorn set as engine for your placeholders?

brittle wadi
#

it has 2 nashorn core jars on the same libraries

vivid sparrow
#

Make sure you set "use_quickjs" or whatever to false

brittle wadi
#

15.3 and 15.4 version

vivid sparrow
#

It will load the one specified in code, but you can remove the libraries folder and let it generate

brittle wadi
vivid sparrow
brittle wadi
#

i deleted the 15.3 and left only the 15.4 and now the servers ram sit's on 2.2gb

#

maybe this was the problem?

#

o.O

vivid sparrow
#

Can you do /spark heapsummary and send the link?

vivid sparrow
#

Looks fine

brittle wadi
#

the server uses only 2.25gb

#

before it was 4-5

#

in the first 15 min run time

#

with only me online

vivid sparrow
#

Let it run longer and we will see

brittle wadi
#

holy shit i lost my sleep for this 😛

unkempt flame
brittle wadi
#

@vivid sparrow everything works now thank you for your help!!

mint fable
coarse lily
mint fable
coarse lily
mint fable
#

i think the commands might be removed

#

what did you need it for

mint fable
coarse lily
#

hmm

mint fable
#

what command are you wanting to use

coarse lily
#

I tried tweaking the JS file a bit and it didn't work, it just showed the result before editing

mint fable
#

send here

#

shouldn't need any /jsexpansion commands to test the js

vivid sparrow
#

Wasnt the cmd removed?

mint fable
#

i thought, i didn't look too hard tho

#

looks like the command classes are still there so 🤷‍♂️

vivid sparrow
#

See if they are used

coarse lily
#

nah, i just want it works exactly what i edit

mint fable
coarse lily
#

just last night it was still working

unkempt flame
mint fable
#

?tagess

tender vaporBOT
mint fable
#

follow all steps in order @unkempt flame this

unkempt flame
coarse lily
mint fable
#

including stopping and starting the server?

unkempt flame
mint fable
#

what deluxetags version do you use

#

and what mc version

unkempt flame
mint fable
#

/deluxetags should show it

#

maybe

coarse lily
#

im reinstalled JSexp and all JS file didn't work 🙂

unkempt flame
mint fable
#

Unfortunately right now I don't really have the time to help with the JS but if you send the file here I'll check back later tonight

coarse lily
#

do math expansion have MIN math ?

mint fable
#

?startuplog

tender vaporBOT
mint fable
#

?paste

tender vaporBOT
mint fable
#

%math_0:_MIN(0, 5)%

#

it uses evalex if you can find that documentation @coarse lily

#

tbh I couldn't find it and just threw MAX() in the other day and it worked lol

coarse lily
#

hmm, now im just need using nested

coarse lily
#

and send the link here

#

make sure you save the file before send link

coarse lily
unkempt flame
mint fable
#

@unkempt flame still working on the startuplog, ye?

mint fable
coarse lily
#

%nested_math_0:_(({checkitem_amount_mat:{deluxemenus_meta_itemBuy_STRING}}/64)-({math_0:_FLOOR({checkitem_amount_mat:{deluxemenus_meta_itemBuy_STRING}}/64)}))*64% 🙂

#

go crazy with this

mint fable
#

nice

#

what does the floor part do again?>

coarse lily
#

but JSexp made it look easier

mint fable
#

rounds it, but how does that change it here

coarse lily
mint fable
#

are you sure you sent the correct one?

#

your log says
[16:22:29] [Server thread/INFO]: [DeluxeTags] PAPI Chat enabled. This means your chat plugin will use placeholders to fetch the tags!

#

but your config doesn't even have that option

#

If you just updated deluxetags then follow all the steps in order again

#

?tagess

tender vaporBOT
mint fable
#

otherwise, I gotta go for now

#

o/

mint fable
#

0 = 0 decimals

#

that's why you keep rounding and don';t even know it

#

lol

#

😂

coarse lily
#

i find another problem from my shop sad_fingerguns , but I don't think it's necessary

mint fable
#
%math_<math expression>%
%math_[precision]:[rounding]_<expression>%
coarse lily
mint fable
#

[precision] [rounding]

#

no need for floor there really

#

unless you just don't use a second math expression

#

tbh you don't need to at all

#

just put it in ()

coarse lily
#

can you fix it for me?

#

because my english is a bit low

mint fable
#

%nested_math_2:(({checkitem_amount_mat:{deluxemenus_meta_itemBuy_STRING}}/64)-FLOOR({checkitem_amount_mat:{deluxemenus_meta_itemBuy_STRING}}/64)})*64%

mint fable
mint fable
#

I hope the amount of () is correct

#

really gotta go

#

o/

#

gl

vivid sparrow
#

Nested will parse the input n times iirc @mint fable

#

It wont work the way you want to

coarse lily
#

still need second math

unkempt flame
unkempt flame
#

@mint fable can i put custome head in delexutags conf?

chilly dune
#

How I put the coordenates on a command?

celest forge
#

Hi, I was looking to register to papi ecloud and I've seen others say that I had to dm @funnycube#0001 but his dm's are disabled, what should I do?

austere hawk
#

Hi, You don't know how to solve the fact that the pinger from the placeholder API returns the motd from server.propeties and not the motd that might be added there by another plugin?

faint veldt
#

is there a placeholder that show the number of people with certain permission node

coral tapir
#

Who knows how I can create a kit with lore that explains who claimed the kit?

stone edge
#

unless you give the items manually, in that case you can simply create a give command

#

and set player name there (since you probable have it as /give requires player name)

peak mason
#

(its detected but the placeholder doesnt work)

mint fable
mint fable
# peak mason (tag me if som1 respond)

The identifier is the part in the placeholder that is between the first % (Or { if bracket placeholders are used) and the first _.
Because of that can you not use %, {, } or _ in your identifier.

#

Also, your String identifier in your onPlaceholderRequest will be anything after your actual identifier

#

so you don't need to substring and exclude your identifier

#

if your identifier was factions and you parsed %factions_member_5% then the String params for onPlaceholderRequest will be member_5

coral tapir
#

Who knows how I can create a kit with lore that explains who claimed the kit with essentials

coarse lily
#

when will you fix %statistics_mine_block% error CJ

coarse lily
austere hawk
#

Do you have any other ideas?

coarse lily
austere hawk
#

Ok

tender vaporBOT
peak mason
#

Mb for the ping

#

still not working

celest forge
#

how do i register to ecloud

vivid sparrow
#

do you have an expansion ready to publish? @ionic fox

mint fable
#

if you really want, make it factionsmember no _

peak mason
#

okk

coarse lily
#

im actually solved my problem, CJ

mint fable
#

?

#

ok

coarse lily
#

when will you fix %statistic_mine_block% ?

vivid sparrow
#

get a custom plugin or find one on spigot that does what you need

#

the placeholder for total mined blocks is annoying to "fix"

mint fable
#

anything counted twice as gaby was saying

mint fable
#

because the result of the placeholder is what you get from the actual statistics

coarse lily
#

hmmm...

mint fable
#

remember the problem is:
if you mine stone, the statistic for stone and cobblestone go up
if you mine grass increases grass and dirt
maybe some other blocks too

vivid sparrow
#

sand

mint fable
#

red sand increase red sand and sand?

#

so many, it's honestly wild

prisma sonnet
#

Hey there!

#

How do I translate color codes in PlaceholderAPI?

#

PlaceholderAPI.setPlaceholders(player, ChatColor.translateAlternateColorCodes('&', placeholderString)) this isn't working.

mint fable
#

so just swap your methods around

prisma sonnet
#

ChatColor.translateAlternateColorCodes('&', PlaceholderAPI.setPlaceholders(player, placeholderString))?

mint fable
#

ChatColor.translateAlternateColorCodes('&', PlaceholderAPI.setPlaceholders(player, placeholderString))

#

ye

prisma sonnet
#

Alr

mint fable
#

because you want to parse the response first

#

so %placeholder% becomes name

#

then gets colored

coarse lily
#

how does args work in dm?

celest forge
vivid sparrow
#

oh

#

ups

#

send the source code here