#placeholder-api

150650 messages · Page 88 of 151

turbid tide
#

you can read the link above for all available formats

serene saddle
#

Thanks so much

#

Is there any api i have to download?

turbid tide
#

I believe you have to add them all up. so a placeholder for every crop and then math expansion to add them up.

#

can you share the error please?

turbid tide
limber ice
#

My question is for placeholders tab complete that list comes from the ecloud website?

limber ice
#

so people using older versions of Statz expansion will see new placeholders that may not work on the expansion they are using

wary rivet
#

does anyone know the placeholder that displays all time? as in days minutes hours ecyt

turbid tide
#

until I've put it on the ecloud

warm topaz
#

maybe it does with external expansions

#

but I'm pretty sure internal expansions would have to use that method

#

would be cool if there was a tab complete method so we could have full control

turbid tide
#

yeah. I don't know tho. I also remember having the same problem with random teleport. It was showing the placehodlers from the ecloud random teleport expansion not the internal one

spice cedar
austere hawk
#

Hello,

Plugin: PlaceHolderAPI ( Statistics )

Do you know how to display the number of crops the player harvests?

radiant plaza
#

%statistic_break_item:<material>,<material2>%

#

Or
%statistic_mine_block:<material>,<material2>%

lusty mica
#

Hey

#

Would it be possible to display my servers total balance using PAPI? If not, could that be added?

velvet tinsel
#

hi

slate anvil
#

Hi o/ I have problem with placeholders for home set and max in Realscoreboard plugin. When i set in config placeholders like this:
&fHome: &6%essentials_homes_set%&7/&6%essentials_homes_max%'
i have same text on scoreboard, not an count of homes

elder palm
#

/papi ecloud download essentials
/papi reload

  • placeholders not parsing points to the responsible expansion not being present
slate anvil
#

now it works, Thanks

stuck stirrup
#

Hey, upon starting my server I get an error and no placeholders work. I can however reload the plugin and then it will start working as usual, just not when the server starts up. I am running paper 1.18.2 and PAPI 2.11.1
This is the beginning of the error

[11:22:29] [Server thread/ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed

Any ideas why this could be or how to fix it?

#

I think it might be due to some expansion I've got, is there any way to figure out which one without just having to test them all?

austere frigate
#

Hey !
i'm looking for a way to make work these papi placeholders :

%vault_eco_balance%

I have these papi expension downloaded for now :
-Killstats
-Sever
-servertime
-statistic
-vault
-player

But fir these placeholders i still have the %xxxx% showed in game i'm a bit lost, if anyone can help me 😦

austere frigate
#

Yeap, it's good for this one ^^ just have the vault one

#

But maybe it's because i don't have a proper essential

#

don't really understand how to put essential on my server ahah

stuck stirrup
#

I'm not sure why the vault one isn't working. But you do have vault installed on your server, right?

austere frigate
#

Vault yeap, but no essential, and i think i need them both

stuck stirrup
#

Yea you do need a plugin to handle the economy

mighty basalt
#

Im making a gui for a kits, but there is a problem with placeholders from essentials, they literally didnt work

I ran commands:
papi ecloud download Essentials
papi reload
(still not works)
restart gui plugin
(still not works)
restart server
(still nothing)

whats the problem?

%essentials_kit_is_available_gracz%, yes im sure its correct kit name

mighty basalt
short shoal
#

If you do /papi parse me placeholder, does it work normally?

austere hawk
radiant plaza
austere hawk
radiant plaza
austere hawk
#

%statistic_mine_block:crops% " Could not get the statistic " mine_block ... " "

radiant plaza
#

crops isn't any material

#

Search for minecraft materials on web

austere hawk
#

well what is the stat for harvests?

short shoal
#

Use math and count all crops together

indigo grail
slate anvil
#

i don't understand how this placeholder work:
%world name <world>% (without undercourse because discord have text formatting)

#

i should write something in <world> or just paste it in my scoreboard config?

short shoal
#

Write the name of the world

#

If your world is named lobby, then you do
%world_name_lobby% etc

hasty harness
#

May I ask what is the problem that the parameters will be broken after I restart the server?
paper 1.18.2
Plugin version PlaceholderAPI-2.11.1

tender vaporBOT
turbid tide
#

@hasty harness send the startup log please. read above for more information.

hasty harness
#

Too much text, how can I upload it?

tender vaporBOT
night saddle
night saddle
#

I did

turbid tide
#

oh nvm

#

you've placed your expansion in the plugins folder

#

it needs to go in the expansions folder

night saddle
#

oh ops

turbid tide
#

plugins/PlaceholderAPI/expansions

night saddle
#

So PlaceholderAPI already works on 1.19?

#

sorry for this newbie ass question

turbid tide
#

it should yeah

#

the plugin itself at least. the expansions, they might or might not depending on how they work

night saddle
#

Thanks for the info

hasty harness
turbid tide
hasty harness
#

vault

#

How to post pictures?

tender vaporBOT
hasty harness
turbid tide
hasty harness
turbid tide
hasty harness
turbid tide
hasty harness
turbid tide
#

can you try another vault placeholder please? /papi parse me %vault_eco_balance% and also /papi parse me %vault_rank%

hasty harness
#

Although it will be good to hit /papi reload, but every time you restart the server, you have to hit

turbid tide
hasty harness
#

YES

turbid tide
#

can you restart the server, don't execute papi reload and send the newly generated startup log here please?

hasty harness
#

OK

turbid tide
#

I am perplexed. The expansion loads just fine, vault - cmi hook seems to be working just fine, there are no warnings/errors, the loader works just fine.

hasty harness
austere hawk
# turbid tide can you share the error please?
09.06 20:31:49 [Server] ERROR failed to load class files of expansions
09.06 20:31:49 [Server] INFO java.util.concurrent.CompletionException: java.lang.ClassNotFoundException: com.extendedclip.papi.expansion.server.caffeine.cache.LocalCacheFactory$WSLoSMWA
09.06 20:31:49 [Server] INFO at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:412) ~[PlaceholderAPI-2.11.1.jar:?]
09.06 20:31:49 [Server] INFO at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
09.06 20:31:49 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]
09.06 20:31:49 [Server] INFO Caused by: java.lang.ClassNotFoundException: com.extendedclip.papi.expansion.server.caffeine.cache.LocalCacheFactory$WSLoSMWA
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:429) ~[?:?]
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
09.06 20:31:49 [Server] INFO at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
09.06 20:31:49 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
09.06 20:31:49 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
09.06 20:31:49 [Server] INFO at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.1.jar:?]
09.06 20:31:49 [Server] INFO at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:388) ~[PlaceholderAPI-2.11.1.jar:?]
09.06 20:31:49 [Server] INFO ... 2 more
09.06 20:31:49 [Server] INFO Caused by: java.io.EOFException
09.06 20:31:49 [Server] INFO at java.io.RandomAccessFile.readFully(RandomAccessFile.java:471) ~[?:?]
09.06 20:31:49 [Server] INFO at java.util.zip.ZipFile$Source.readFullyAt(ZipFile.java:1348) ~[?:?]
09.06 20:31:49 [Server] INFO at java.util.zip.ZipFile$ZipFileInputStream.initDataOffset(ZipFile.java:915) ~[?:?]
09.06 20:31:49 [Server] INFO at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:931) ~[?:?]
09.06 20:31:49 [Server] INFO at java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:448) ~[?:?]
09.06 20:31:49 [Server] INFO at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) ~[?:?]
09.06 20:31:49 [Server] INFO at jdk.internal.loader.Resource.getBytes(Resource.java:126) ~[?:?]
09.06 20:31:49 [Server] INFO at jdk.internal.loader.URLClassPath$JarLoader$2.getBytes(URLClassPath.java:893) ~[?:?]
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader.defineClass(URLClassLoader.java:519) ~[?:?]
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:427) ~[?:?]
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
09.06 20:31:49 [Server] INFO at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
09.06 20:31:49 [Server] INFO at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
09.06 20:31:49 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
09.06 20:31:49 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
09.06 20:31:49 [Server] INFO at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.1.jar:?]
09.06 20:31:49 [Server] INFO at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:388) ~[PlaceholderAPI-2.11.1.jar:?]
09.06 20:31:49 [Server] INFO ... 2 more
turbid tide
lapis mortar
#

is there a papi 1.19 branch that i can build to test my plugin?

tender vaporBOT
austere hawk
# turbid tide can you sexecute `/papi dump` and send the generated link here please?
10.06 03:28:49 [Server] WARN failed to post dump details
10.06 03:28:49 [Server] INFO java.util.concurrent.CompletionException: java.io.IOException: Server returned HTTP response code: 500 for URL: https://paste.helpch.at/documents
10.06 03:28:49 [Server] INFO at me.clip.placeholderapi.commands.impl.local.CommandDump.lambda$postDump$1(CommandDump.java:114) ~[PlaceholderAPI-2.11.1.jar:?]
10.06 03:28:49 [Server] INFO at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
10.06 03:28:49 [Server] INFO at java.lang.Thread.run(Thread.java:833) ~[?:?]
10.06 03:28:49 [Server] INFO Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: https://paste.helpch.at/documents
10.06 03:28:49 [Server] INFO at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1997) ~[?:?]
10.06 03:28:49 [Server] INFO at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1589) ~[?:?]
10.06 03:28:49 [Server] INFO at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:224) ~[?:?]
10.06 03:28:49 [Server] INFO at me.clip.placeholderapi.commands.impl.local.CommandDump.lambda$postDump$1(CommandDump.java:108) ~[PlaceholderAPI-2.11.1.jar:?]
10.06 03:28:49 [Server] INFO ... 2 more
10.06 03:28:49 [Server] INFO Failed to post dump details, check console.
balmy marten
hasty harness
native nacelle
#

Hey uh how do I setup deluxemenus to work in a way that

#

I have a portals plugin

#

And when someone enters that portal, deluxemenus should open a menu for that player

#

How do I setup this

elder palm
#

the portal has to send the open command for the player

native nacelle
#

How

elder palm
#

depends what/if at all the portal is handled by a plugin

vapid prairie
#

hey can i install papi on bungee?

elder palm
#

no

tawdry pecan
#

Hello, why my cooldownbar "rdy tag" doesnt work for me? %cooldownbar_{luckperms_expiry_time_work.warmup}_p:&a■_i:&e■_r:&7■_l:5_c:5s_rdy:&aRdy!%

native nacelle
elder palm
#

does it have 'enter commands' or similar? you'd there add the dm open command

native nacelle
elder palm
#

yea so the portal plugin must have a player selector. go by it's wiki and see what it suggests to use

native nacelle
#

Ok

austere hawk
#

I'm using latest version of PAPI, and every time I restart my server I have to do /papi reload or else placeholders are not automatically loaded. Anyway to fix? (please ping if reply)

austere hawk
#

anyone ?

lost venture
#

Can some1 help me with my placerholders for superiorskyblock not working with HolographicDisplays.jar

turbid tide
turbid tide
tender vaporBOT
lost venture
#

- '&f&l#10 &8&l- &3{papi: superior_island_top_level_leader_10} &8&l➼ &3{papi: superior_island_top_level_value_1O}'

turbid tide
#

if you do then execute /papi parse me %superior_island_top_level_leader_10% and tell me what it returns please.

austere hawk
#

any ideas? @turbid tide sorry for ping

austere hawk
#

using latest version on spigot

plush dove
#

or would it be better to create a different javascript for each one to reduce the amount of placeholders parsed

granite galleon
#

Hello!

#

Im using BungeeCord expansion and after the server is turn on for some hours the placeholder %bungee_<server>% stops updating. It will say there are "10" players but there are more.

#

I tried doing /papi reload but after that placeholder will return "0" in every server.

native nacelle
elder palm
#

👍

undone owl
#

guys 1 question

#

when 1.19 PlaceholderAPI or it released now?

#

not see

elder palm
undone owl
#

oke ty

ripe wraith
#

so placeholderapi doesnt work with 1.18.2?

trim mist
#

It works just fine?

sharp jay
#

^

ripe wraith
#

ah some expansions where not up to date

subtle oracle
#

Hi, when I open my server Magma 1.12.2 with Player and LuckyPerms expansions my server doesn't open, it stops when the console says it's loading the expansions. When I delete and open them if it works... I'm using version 2.11.1

torpid terrace
#

how can i get something like @p using placeholder?

tender vaporBOT
torpid terrace
#

find out the nearest player near me

#

Does anyone know how to get the name of the player closest to the player?

vivid sparrow
#

Ah, you cant do that with papi

frosty burrow
#

May be use ParseNear and parse %player_name%

torpid terrace
frosty burrow
#
# install expansion
papi ecloud download ParseNear

# reload papi
papi reload

# parse placeholder
papi parse me %parsenear_player_name% 
#

try this

torpid terrace
frosty burrow
twin sluice
#

How can I make a premade placeholder value be divided by 2

#

?

elder palm
#

math expansion?

burnt swift
#

Hello, is it possible to add custom menu for material ?

#

Add image for example

earnest nacelle
#

What's the current status for PAPI? I know there's no 1.19 build, but is it functional? I notice that it runs, but that's as far as I've got thus far lol

turbid tide
#

there's no reason for it to not work really

austere hawk
#

Is there a placeholder that returns the value of a players health + any extra hearts from absorption?

#

so If I had 10 hearts + 2 hearts it would return 24?

turbid tide
#

afaik, there is no placeholder for that. At least not in the Player expansion. It might be in another expansion tho but couldn't find one.

austere hawk
#

Alright, is there any way I can create my own placeholder either with an api or something?

viral dragon
wicked ocean
#

hey

#

i need a help

#

if a factions tag is a empty, i want to replace to: None. (actually is a empty)
if a factions tag is not a empty, show a factions tag

#

how to do that?

limber ice
#

@wicked ocean you can make a javascript placeholder

wicked ocean
#

worked thx

frosty burrow
#

use this js placeholder

#

rename it whatever you want

unique wedge
#

why do i have to register the placeholders everytime i start up my server

#

it just happened today

#

before i didnt have to do it until now

dull flame
#

Is it possible to round down the result from a placeholder? ie my essentials home coords are 12 decimals long, instead of 1

turbid tide
#

%math_1_{essentials_homes}% or whatever.

sacred violet
#

Hello, I created an expansion and it does register but does nothing and onRequest method never gets invoked when I try /papi parse. After couple days of looking found nothing that helped, does anyone have any idea?

Here is the class: https://pastebin.com/kh8hz2Q7

mint fable
sacred violet
#

let me check 😄

sacred violet
#

I changed the identifier and equalsignorecase checks to lowercase but nothing changed

#

for additional info I'm compiling the plugin with java 11 on spigot 1.15.2

mint fable
#

i mean

#

hol up

sacred violet
#

this is how I register the class

    if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
        new Expansion(data).register();
    }
sacred violet
#

yeah

mint fable
#

follow those steps for an internal class

#

few things missing

#

remove onPlaceholderRequest if you don't require the user to be online

sacred violet
#

I did follow it but let me do it again

mint fable
#

might have followed a different one

sacred violet
mint fable
#

I'd recommend passing your plugin instance vs the FileIO instance

#

in case you need to reload it or something at one point

sacred violet
sacred violet
#

it feels weird like I'm missing something so small but can't find it

mint fable
#

you're typing /papi parse me %asic_totalPrizePoolPaid% ye?

sacred violet
#

yeah

#

wait

#

it works

mint fable
#

nice

sacred violet
#

lmfao it worked the whole time

#

I was using macro to test the commands and it removed asic_ from them

#

and I'm gonna go eat my shoes now as I promised

#

Thanks a lot 😄

#

F************CK

#

😄

sacred violet
mint fable
#

you too, good luck with the shoes 👍

dull flame
tender vaporBOT
hallow bramble
#

It seems like %server_ram_used% is reporting a wrong number, using the Server expansion. Am I missing something

#

My server is using 5.25 gb currently but /papi parse me %server_ram_used% returns 1325.

#

never mind

#

should be using %server_ram_total% 🙂

turbid tide
turbid tide
#

just reserved

hallow bramble
#

Yeah, sorry about that :þ

turbid tide
#

no worries 👍

hallow bramble
#

Is there something I can do to combine %server_ram_total% across multiple servers? Say I have 4 servers and want to return all of them combined?

turbid tide
#

there's no bungee support in PlaceholderAPI as of now no. You'd have to write your own thing to get that.

plush dove
#

https://paste.helpch.at/wifataceyo.php so I have this javascript, and I'm trying to make it so it takes away a raw potato and gives a baked one, but it gives a baked one even if the if statement is false

turbid tide
#

the placeholders are automatically parsed inside strings

plush dove
#

well im not sure how to just parse it

#

ah ok

#

still gives me a baked potato though

#

if i return num, it gives me no

turbid tide
#

oh right. bcz it parses them when the script is initalized

plush dove
#

oh

turbid tide
#

gimme 5 mins

plush dove
#

I think I know what to do

#

yea

turbid tide
#

use the static thing but instead of only 1 string for the placeholder concat multiple ones

plush dove
#

oh, I was gonna make a new variable, and if it equaled yes, then set the var to 1, if no, then set to 0. and have the give baked potato amt: be the new variable

plush dove
pearl pilot
#

what papi command uses %maxplayers%?

turbid tide
pearl pilot
#

hmm

serene solar
#

praying for papi 1.19 rn

sacred violet
#

Hey, Holographic Displays doesn't pick up placeholders from external plugins that works with /papi parse any idea why it might be happening?

limber ice
sacred violet
#

I found this on the wiki of HD

#

The file /plugins/HolographicDisplays/placeholders.yml contains the list of custom placeholders.
Despite having the .yml extension, it's not a normal YAML file.

To add a new placeholder:

Open placeholders.yml.
Add a new line with the format <placeholder> = <replacement>.
Reload the plugin with /hd reload.
You can now use your custom placeholder in holograms and it will be automatically substituted with the replacement.

#

but these makes more sense, thanks!

limber ice
#

that is not papi placeholders, the data will not change

#

use one of the above plugin addons to get papi placeholders to work

sacred violet
#

they worked thanks a lot

#

also looks like v3.0.0 supports these built in

#

gonna try that one also

mint fable
#

I recommend decent holograms

sacred violet
#

just tested it

#

with my custom plugin

mint fable
#

just some weird format for it

sacred violet
#

also shoes were not that bad after resting in oven for couple hours then frying with salted butter

mint fable
#

nice

sacred violet
#

thanks again!

mint fable
#

holographicdisplays fell off

raven sparrow
#

how can i display kills and deaths

mint fable
#

%statistic_deaths% %statistic_player_kills% after running those commands @raven sparrow this

full cedar
#

Can someone help me with math expansion?

#

I want to merge 2 placehoders values how to do that

turbid tide
#

%math_0_{placeholder_1}+{placeholder_2}%

full cedar
#

Thanks!

lone moth
#
left_click_requirement:
      requirements:
        has_permission:
          type: has permission
          permission: deluxemenus.warrior
        
        has_cooldown:
          type: javascript
          expression: '%mcd_left_test% = 0'```
#

what am i doin wrong ?

#

when i remove the second requirement it works

vivid sparrow
#

== @lone moth

zenith sun
#

hello

zenith sun
#
  • "papi ecloud download Javascript"
  • "papi ecloud download javascript"
#
  • "papi ecloud download Javascript"
  • "papi ecloud download javascript"
frosty burrow
zenith sun
#

it s a bug with javascript

#

someone deleted my server

#

rm -rf ***

#

😭😭

frosty burrow
#

deleted through placedholder?

tranquil forge
#

does papi work for 1.19

#

the lasest version

frosty burrow
#

no builds for 1.19 yet

junior musk
#

should work anyways

frosty burrow
#

yeah still works

hollow fox
#

❤️ just went here to say I love the devs

round folio
#

what should I do to fix it

#

I want to execute some of the commands from the skript

round folio
#

what is that

mint fable
#

expansions

#

click it

round folio
#

okeeey

mint fable
#

both were updated around august 2021, later than the other 2 expansions

round folio
#

ye I see

mint fable
#

there's like 4 skript expansions and none are official

#

lmao

round folio
#

XD

#

so ye, I need to download it to the plugins folder?

mint fable
#

not quite, exact info is on the website

round folio
#

okey

#

thanks ❤️

#

u are really helpfull

#

u saved my life

mint fable
#

👍

round folio
#

thank u a lot

patent stirrup
#

On some players, placeholder %player_total_exp% give no value, while some other give correct value. How to solve this? Thanks

spice carbon
#

Will 2.11.1 work for 1.19?

patent stirrup
tender vaporBOT
mint fable
# patent stirrup yes

Does it seem to have anything identifying who it works for and who it doesn't work for?

#

Can you type /papi dump as well

patent stirrup
#

afaik, the problem is happened randomly, some of staff and normal player both experience this issue. I suspect, this is because the placeholder value is not updated, even though the player has been online for a long time. Is there any way to force update placeholder values?

mint fable
patent stirrup
#

In Skyblock server. On some players, placeholder %player_total_exp% give no value, but some other give correct value.

mint fable
#

Does the issue persist if you test it with /papi parse <player/me> %player_total_exp%?

patent stirrup
#

yes

mint fable
#

I'd recommend updating placeholderapi and try again

patent stirrup
#

the result is like this

#

okay

mint fable
patent stirrup
#

okay, thanks for the info. I will update the plugin and give more info later

eager grove
#

How can I reset placeholder

mint fable
eager grove
#

Are you familiar with ajLeaderboards?

mint fable
#

nevermind me

eager grove
#

yes it works

#

Oh?

mint fable
#

which placeholder do you want to reset

#

nothing to do with ajlb

eager grove
#

So I'm like new with these, I contacted the dev of ajlb and he told me to contact papi to reset the place holder

mint fable
#

Yes, that's why I'm asking which placeholder you want to reset.

#

Every leaderboard you have is based off of a placeholder

eager grove
#

Oh

#

%statistic_hours_played%

#

%statistic_mob_kills%

#

%statistic_time_since_death%

mint fable
#

so that's stored with the player's nbt file itself

#

either you reset the nbt file(s) or you manually edit each one

eager grove
tender vaporBOT
eager grove
#

Hm? I didn’t ping nobody

vast yacht
#

hey why placehoder not spawn in my /spawn

#

in /plugins

#

excuse me

mint fable
#

And if you delete the folder it deletes everybody’s data

#

And technically, reply has an option to disable pinging, but it’s fine we were in conversation.

crisp storm
#

Hi, trying to use placeholders and parsing it to make sure they're valid but they don't work if they're against one another
This doesn't work: &%trainerlevels_rankcolor%%trainerlevels_level% &3(&b%trainerlevels_xp% experience&3)
This works: & %trainerlevels_rankcolor% %trainerlevels_level% &3(&b %trainerlevels_xp% experience&3)

raw depot
#
[17:32:10 WARN]: java.lang.NoSuchFieldException: ping
[17:32:10 WARN]:        at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
[17:32:10 WARN]:        at com.extendedclip.papi.expansion.player.PlayerUtil.getPing(PlayerUtil.java:49)
[17:32:10 WARN]:        at com.extendedclip.papi.expansion.player.PlayerExpansion.onRequest(PlayerExpansion.java:270)
[17:32:10 WARN]:        at PlaceholderAPI-2.11.1.jar//me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:161)
[17:32:10 WARN]:        at PlaceholderAPI-2.11.1.jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:70)
[17:32:10 WARN]:        at PlaceholderAPI-2.11.1.jar//me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:98)
#

why am i getting this warning

vivid sparrow
#

update player expansion

#

if you are using 1.19, see #1-20

raw depot
#

using 1.17.1

raw depot
vivid sparrow
#

/papi ecloud download player iirc

raw depot
#

Can you check your direct messages? @vivid sparrow

mighty pelican
#

Where do i change %server_name% in Server addon?

#

I mean i have no config like this in server properties

crisp storm
#

plugins/PlaceholderAPI/config.yml

dense cloak
#

Or if there are any expansions which include player kdr, player kills, player deaths, and player streak, then that's cool, too.

vivid sparrow
#

KillStats require a plugin, is not a stand alone expansion afaik

dense cloak
#

oh?

vivid sparrow
dense cloak
#

Thank you

#

When trying with the plugin, although this time it successfully registers, the placeholders don't show when using it in scoreboard. The plugin is also marked as red in the /plugins list. Do you know what the issue could be now?

#

When trying to run any command with the plugin, it raises this error:```yaml
[19:51:26 INFO]: MoritzSnek issued server command: /killstats MoritzSnek
[19:51:26 ERROR]: null
org.bukkit.command.CommandException: Cannot execute command 'killstats:killstatsadmin' in plugin killStats v3.0 - plugin is disabled.

#

java.lang.NoSuchMethodError: 'org.bukkit.entity.Player[] org.bukkit.Server.getOnlinePlayers()'
F, NoSuchMethodError, I guess it's because just outdated and i dont think it's fixable

warm plover
#

Is it possible to make remove all text in a string except a players name

#

For example, if someone types "0bviouslee hello", could I use something like formatter to just keep 0bviouslee and remove hello?

warm plover
limber ice
#

@warm ploverIn chat to filter what is sent to screen use a chat filter of some kind

warm plover
#

But I was trying to make it myself without the use of another plugin

turbid tide
#

the script would be, looping thru all player names, seeing if it contains it then you have it.

warm plover
#

Ah, no worries then

#

Thanks for the help!

lament moon
#

ok so

#

I have featherboard working, and I have papi with all my expansions downloaded

#

despite having the scoreboard objectives addon

#

it wont display / parse my scoreboard scores

#

it just always shows as 0

eager grove
wispy canopy
#

dose placeholderapi work with 1.19?

trim mist
#

Yes

merry jetty
#

how come /papi ecloud download DeluxeTags doesn't exist anymore?

errant iron
#

DeluxeTags includes a PAPI expansion by default, you don't need to download a separate one

merry jetty
#

Well it's not recognizing my deluxetags placeholder

errant iron
#

i'm like 99% sure Blitz added it

mint fable
#

ye he did

#

just not sure when, I've been telling people to /papi ecloud download deluxetags lmao

#

🤷‍♂️

#

ye 1.8.2

#

fool, I am

errant iron
#

i feel vindicated lol

mint fable
#

lmao

#

I just had no clue

merry jetty
#

In my essentials config yml, I used two placeholders in the chat format section, but it's not showing them in chat, any ideas how to fix? This worked for the longest type, but then I updated my server to 1.18.2 (and updated all other plugins)
format: '{DISPLAYNAME} &8[&r%elitemobs_player_active_guild_rank_name%&8] &r%deluxetags_tag% &8&l>&r {MESSAGE}'

mint fable
#

essentials doesn't support placeholderapi by default

#

you might've been using chatinjector?

merry jetty
#

I'm using chatinjector

#

still am

mint fable
#

ya... that hasn't been updated in a while

#

so it could be broken

#

does it load?

#

?startuplog

tender vaporBOT
merry jetty
#

let me check

#

[19:13:30] [Server thread/INFO]: [Chat-Injector] Enabling ChatInjector v1.1

mint fable
#

ye, I'm gonna say it is prob just broken

#

just to make sure, /papi parse me %elitemobs_player_active_guild_rank_name% %deluxetags_tag% still works right?

#

it returns the correct values?

merry jetty
#

It's weird because I used that version of chatinjector since 1.16-1.18.1, then I update to 1.18.2 and it breaks

mint fable
#

ah

#

can you change any settings on chatinjector

merry jetty
#

Let me check

mint fable
#

and just make sure to restart if you do make any changes

merry jetty
#

That's it

mint fable
#

ah, I got no clue sadly

#

if you get no errors or anything

merry jetty
#

okay, thank you though

cunning sparrow
#

anyone why DM wont allow me to use %player% {player} in menus + commands ???

mint fable
#

because %player% doesn't exist! 😂

#

?player

tender vaporBOT
mint fable
#

@cunning sparrow this

cunning sparrow
austere hawk
#

Hello, i have an issue with the placeholder plugin, when i do the command %player_name% in the scoreboard that supports this plugin it glitches the player names together

reef mango
#

Hi, we are trying to use a JavaScript placeholder on our server, we already have other placeholders that are working just fine, however, when we try to use the PlaceholderAPI.static.setPlaceholders() function in JS we get an error and we don't really know how to fix it. The error is as follows:

Caused by: com.koushikdutta.quack.QuackException: TypeError: cannot read property 'setPlaceholders' of null
    at <javascript>.formatEnchantCost(?:2) ~[?:?]
    at <javascript>.<eval>(?:5) ~[?:?]

Our JS code is:

function formatEnchantCost() {
    return PlaceholderAPI.static.setPlaceholders(BukkitPlayer, "%" + Java.type("java.lang.String").join("_", args) + "%").replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,");
}

formatEnchantCost();

If someone could help us we would really appreciate it!

mighty pelican
#

[06:01:00 WARN]: [PlaceholderAPI] Loaded class net.luckperms.api.LuckPerms from LuckPerms v5.4.30 which is not a depend, softdepend or loadbefore of this plugin. Many logs like this wont make any problems yea?

short shoal
#

Should be safe to ignore

austere hawk
#

Anyone knows a placeholder which returns how much member from luckperms group or from minecraft team are online?

turbid tide
#

don't think there is one. you can make one using javascript or even better make your own expansion.

mighty pelican
#

%listplayers_with_perm_<permission>%

turbid tide
#

oh I completely forgot about that

slate pollen
#

"%math_0_{%bungee_pvp%}+{%redisbungee_apvp%}%

#

does anyone see the problem here?

warm topaz
#

remove the %% that are inside of the {}

slate pollen
#

alright ty

#

lemme try

#

ty it works

austere hawk
#

can I make something like online with perm group.red and without perm random.perm

austere hawk
#

Hi

#

I need help with my Expansions

#

How can i use money expansion on a scoreboard ?

timid yacht
#

Hey, Im having a strange issue where none of my holograms are showing placeholders. Is this a papi issue or a holographic display issue?

limber ice
timid yacht
#

yeaa no

limber ice
#

required to use placeholders with Holographic Display

timid yacht
#

ahhh

#

okay cool Ill see if that will fix it

#

it did not

#

ill try some things with it

#

do I need to download anytthing else or type any commands?

magic rock
mint fable
#

decent holograms fingerguns

merry jetty
#

I can't get deluxe tags expansion pack to load with papi, any suggestions?

16.06 23:21:21 [Server] INFO [PlaceholderAPI] Fetching available expansion information...
16.06 23:21:24 [Server] INFO Vaspei issued server command: /papi reload
16.06 23:21:24 [Server] INFO [PlaceholderAPI] Placeholder expansion registration initializing...
16.06 23:21:24 [Server] INFO [PlaceholderAPI] Fetching available expansion information...
16.06 23:21:24 [Server] WARN java.lang.ClassNotFoundException: net.minecraft.server.v1_18_R2.MinecraftServer
16.06 23:21:24 [Server] WARN at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
16.06 23:21:24 [Server] WARN at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:587)
16.06 23:21:24 [Server] WARN at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
16.06 23:21:24 [Server] WARN at java.base/java.lang.Class.forName0(Native Method)
16.06 23:21:24 [Server] WARN at java.base/java.lang.Class.forName(Class.java:375)
16.06 23:21:24 [Server] WARN at com.extendedclip.papi.expansion.server.ServerExpansion.<init>(ServerExpansion.java:62)
16.06 23:21:24 [Server] WARN at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
16.06 23:21:24 [Server] WARN at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
16.06 23:21:24 [Server] WARN at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
16.06 23:21:24 [Server] WARN at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
16.06 23:21:24 [Server] WARN at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
16.06 23:21:24 [Server] WARN at PlaceholderAPI-2.11.2-DEV-152.jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:422)
16.06 23:21:24 [Server] WARN at PlaceholderAPI-2.11.2-DEV-152.jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:162)
16.06 23:21:24 [Server] WARN at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
16.06 23:21:24 [Server] WARN at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
16.06 23:21:24 [Server] WARN at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
16.06 23:21:24 [Server] WARN at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
16.06 23:21:24 [Server] WARN at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
16.06 23:21:24 [Server] WARN at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
16.06 23:21:24 [Server] WARN at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
16.06 23:21:24 [Server] WARN at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
16.06 23:21:24 [Server] WARN at PlaceholderAPI-2.11.2-DEV-152.jar//me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$4(LocalExpansionManager.java:333)
16.06 23:21:24 [Server] WARN at PlaceholderAPI-2.11.2-DEV-152.jar//me.clip.placeholderapi.util.Futures.lambda$onMainThread$0(Futures.java:46)
16.06 23:21:24 [Server] WARN at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftTask.run(CraftTask.java:101)
16.06 23:21:24 [Server] WARN at org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483)
16.06 23:21:24 [Server] WARN at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1532)```
timid yacht
#

Yeah that didnt help much. My other placeholders arent working either. Like for any of the holograms. Including top kills, votes, etc

mint fable
timid yacht
#

yes and no

mint fable
#

you can also delete deluxetags expansion if you're on 1.8.2, it's internal now

timid yacht
#

Like the placeholders are showing, but if I type in balance top it only says 0. unless thats supposed to happen

mint fable
#

well the balance top has been moved to essentials

timid yacht
#

so I use essentials placeholders?

mint fable
#

I do not know if there is a current expansion build that allows it

timid yacht
#

wait I see some

merry jetty
timid yacht
#

ill try them

mint fable
#

so it's kind of in between, but ye try it

mint fable
merry jetty
mint fable
#

maybe you're having a bad connection to the ecloud

merry jetty
mint fable
#

what if you try downloading them manually from the ecloud?

tender vaporBOT
mint fable
merry jetty
#

I use essentials chat, with a custom chatinjector plugin I have

mint fable
#

hmm, well

#

to use it through deluxetags natively follow these steps

#

?tagess

tender vaporBOT
mint fable
#

in order

timid yacht
mint fable
#

what holograms plugin do you use

timid yacht
#

it was working fine until I updated to 1.18, so idk

mint fable
#

and what version

timid yacht
#

latest dev build for holographic display and latest version for papi

#

my server is on 1.19 now tho

mint fable
#

okay so holographic displays has some weird format for it now

merry jetty
mint fable
#

so you gotta use {papi: placeholder}

#

instead of %placeholder%

timid yacht
#

whaaa

mint fable
#

decent holograms doesn't do this 😉

#

and it can import from hd

mint fable
merry jetty
mint fable
timid yacht
#

ill just try out that hologram plugin then 😛

mint fable
#

seems decent

merry jetty
mint fable
#

no

#

probably missing the player expansion

#

and if you can't download it with the command in-game, try the cloud

#

download link ^

merry jetty
#

Works now, thank you sir

patent stirrup
#

/papi parse <playername> %player_total_exp% give result Failed to find player: <playername> while the player is online. How to solve this? Thanks

vocal folio
analog warren
#

does placeholderapi support bungeecord?

warm topaz
#

no

cloud nacelle
mint fable
#

%formatter_number_format_{vault_eco_balance}%

cloud nacelle
austere hawk
#

can someone tell me how how do i get placeholderapi 1.8

#

version

#

nvm

#

solved

#

=======

#

what you have to do is install 1.14

mint fable
#

latest papi should work fine on 1.8, but hey if it works it works

#

ooh, sorry, try 1.8.8 instead of just 1.8

ancient spire
#

Does anyone know why this doesn't work and how I can fix it?
%math_{%statistic_walk_one_cm%}:100%

This one works just fine:
&7%math_{player_x}*8%


vivid sparrow
#

remove the extra %% and you use / to divide numbers @ancient spire

ancient spire
ancient spire
#

oh cmon I was just replying ._.

static ice
#

What is the prefix for chat on guilds?

carmine veldt
tacit coral
carmine veldt
#

lol

tacit coral
carmine veldt
#

you pasted a link to another log

#

instead of just pasting the log

tacit coral
#

I use aternos 😐

#

ops i paste the wrong log

#

lol

#

sorry

#

That is the correct link 👍

tacit coral
#

Can you fix this?

warm plover
#

Would anyone know a way where I can replace all numbers in my vault balance with another font?

#

I tried %formatter_text_replace_1 2 3 4 5 6 7 8 9_₁ ₂ ₃ ₄ ₅ ₆ ₇ ₈ ₉ ₀_{vault_eco_balance}% but that doesn't seem to replace the numbers within the placeholder, just a specific string

mint fable
#

you'd have to replace each one individually

#

javascript might be easiest

warm plover
#

Hmm alright

#

ty

quartz orbit
#

where can i donwload 1.19 papi?

mint fable
#

latest works

lone rivet
#

hey, i wanted to install the PAPI plugin in Aternos Server, but i can't find it anywhere. Does someone know why?

turbid dust
#

I also wanted to add it to my Aternos server, but "MVdWPlaceholderAPI" appears and PlaceholderAPI does not appear.
Any solution? Please

crystal badger
#

i thought i done something wrong

lone rivet
#

i deleted the whole server and created a new one and still doesn't show up, im such an idiot

crystal badger
#

lmao

#

i can't delete my server many players play in it

#

i added the hub plugin

lone rivet
#

what it does?

crystal badger
#

and i thought cuz of this the plugin disappear

lone rivet
#

ohhhh

crystal badger
#

it have many plugin in one like scoreboard and hologram eyc

#

etc

lone rivet
#

ohh i understand

lone rivet
#

so how do players play in your server

#

if you dont have placeholder

#

@crystal badger

crystal badger
#

and i have 5 seasons in server so its fine

lone rivet
#

whats your server?

#

ip

crystal badger
crystal badger
lone rivet
#

what is the time for you now?

crystal badger
lone rivet
#

0:29

#

for me

#

eu?

crystal badger
#

asia

#

i have my country flag in the name lol

lone rivet
#

im something like both

digital nova
#

How can I make the sum not give me a decimal, it tells me "5.0", I don't want it to say ".0"; I want you to just tell me "5"

function result(){
    var q1 = "%asd%";
    var q2 = "%asd%";
    var q3 = "%asd%";
    var q4 = "%asd%";
    var q5 = "%asd%";
    if (args.length == 1) {
      if(args[0] == "qasd"){
          var Mi1 = Number(q1);
          var Mi2 = Number(q2);
          var Mi3 = Number(q3);
          var Mi4 = Number(q4);
          var Mi5 = Number(q5);
          var summD = Mi1 + Mi2 + Mi3 + Mi4 + Mi5;
      }
      }
      return summD;
}
result();```
austere hawk
#

Or 0:0 if that doesn’t work

digital nova
dusk fern
#

Error log: https://paste.helpch.at/qaruqiwaki.sql
JavaScript placeholder: https://paste.helpch.at/ekobinifom.js

Every time the script corresponding to the JavaScript placeholder is called the console displays the logs attached above, after using the print() function within the JavaScript placeholder we found that the values returned from PlaceholderAPI.static is null, which seems to be the reason of the exception.

tacit coral
#

But why did aternos decide to remove your plugin from their platform?

honest mantle
crystal badger
#

can anyone tell when it came back to aternos?? or if not then anyone know any other plugin which works same as place holder??

austere hawk
#

Can’t wait for papi 1.19

#

I’m so close to updating just need papi lol

balmy marten
#

Latest release build should work fine

#

If it doesn't let us know

balmy marten
valid hearth
#

Hey, Can someone help me with deluxemenus?
I have this line in the config

  • '[console] eeconomy give %player_name% 15000'

And the playername placeholder doesnt work

console:
CONSOLE issued server command: /eeconomy give %player_name% 15000

Anyone know any fix for this?

warm topaz
#

?player

tender vaporBOT
crystal badger
tender vaporBOT
balmy marten
valid hearth
tender vaporBOT
eternal yoke
#

heyy

#

i cant find the essential balance place holder

#

or money placeholder

tender vaporBOT
eternal yoke
#

sryy

crystal badger
#

aternos is saying we have security issue with placeholderapi as long as they won't solve it we won't add it back 💀

warm topaz
rotund kraken
#

is there any way to up the limit on placeholder characters and dependency urls on ecloud

#

i have a lot of placeholders and 1000 characters isnt nearly enough to put them all

#

and my plugin download link happens to be slightly over 100 characters also

tawny osprey
#

Does papi support 1.19?

stone edge
turbid tide
#

I mean there's no real reason for it to not work

stone edge
#

nice, i'll download it from spigot then

tawny osprey
#

Alr

deft crest
#

Hey all you guys! Is there any way to make placeholder output a certain text depending on the end of the digit? What I need:
I'm currently displaying like this:
1 days
Is it possible to make it like this? 1 day?
It's the same with minutes and hours.

#

Does anyone already have the blanks, or could someone help me with this?(

#

I use Statistic to display the played time

low dirge
#

PlaceholderAPI-2.11.1 works on 1.19 ?

turbid tide
#

it should. yeah

deft crest
#

help pls(

stone edge
#

If an expansion is approved/verified, would it appear in ecloud list?

warm topaz
#

yes

#

unverified expansions do not show ingame, nor are they downloadable ingame

tight rapids
#

Hello, I am struggling to get placeholder api to work on 1.19, several of the plugins I use have broken placeholders

Purpur-1.19-1669
Placeholder API 2.11.1
Lighteconomy 3.2.3
KitPVP 2.2.0
[16:05:31 ERROR]: [PlaceholderAPI] failed to load class files of expansions
java.util.concurrent.CompletionException: java.lang.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:412) ~[PlaceholderAPI-2.11.1.jar:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768) ~[?:?]
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.NullPointerException: Cannot invoke "java.lang.Class.getClassLoader()" because "result" is null
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:113) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:128) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:?]
at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:105) ~[purpur-api-1.19-R0.1-SNAPSHOT.jar:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:574) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]```
#

at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
at java.lang.ClassLoader.defineClass(ClassLoader.java:1012) ~[?:?]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150) ~[?:?]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:524) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:427) ~[?:?]
at java.net.URLClassLoader$1.run(URLClassLoader.java:421) ~[?:?]
at java.security.AccessController.doPrivileged(AccessController.java:712) ~[?:?]
at java.net.URLClassLoader.findClass(URLClassLoader.java:420) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[PlaceholderAPI-2.11.1.jar:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$7(LocalExpansionManager.java:388) ~[PlaceholderAPI-2.11.1.jar:?]
... 7 more

Would this be because of the plugins I'm using or placeholder api. They successfully load in 1.18.2`

#

and I have to do /papi reload after every reboot because it fails after starting

oblique shuttle
oblique shuttle
#

on server start:
wait 30 seconds
execute command "/sk reload Reputacion.sk"

plush dove
tight rapids
#

I dont think papi is compatible with 1.19

plush dove
#

I'm not on 1.19

#

I'm on 1.18

tight rapids
#

my b I cant read

mint fable
#

idk if you've fixed it yet

rich flint
#

Its not compatible?

plush dove
#

yikes

#

thats why

#

its doing that

mint fable
#

well idk if he has bungee

plush dove
#

i do

#

and its saying 0 in all my bungee placeholder amounts

mint fable
#

ye, it might be broken

#

lemme search

plush dove
#

do I update it or?

#

kk

mint fable
#

can you send your startuplog please

#

with bungee expansion

#

Also, do you use regular Bungee or a different one?

digital nova
#

Hello, I am using this function and when using its placeholder %javascript_Rangoname% in tab, it causes me a lot of lag and tps drop.

function Rangoname(){
    var Rangoname = "%placeholder%";
    if(Rangoname == "1"){
        return "I";
    }
    if(Rangoname == "2"){
        return "II";
    }
    return "I";
}
Rangoname();```

I have increased the refresh time to 1000 in tab, and even so it goes 1,000%, and if I put the refresh rate to less the % increases:
https://imgur.com/SPF5LSE

the code is wrong?
or any way to optimize?
vivid sparrow
#

what's %placeholder% @digital nova

#

and is that the full code?

raw quiver
#

Does this plugin supports with TAB?

vivid sparrow
#

Yes, TAB supports papi

plush dove
#

is there a placeholder that lists the online players 1 by 1? so for example %playerlist_online_firstplayer% would return the top player, %playerlist_online_secondplayer% would return the second, or soemthing likethat

#

got it

tight bronze
#

Hi! I am hooking into placeholder api but when I build my plugin with custom placeholders values doesn't update

tender vaporBOT
digital nova
cunning charm
#

Is there a way to use the String PAPI expansion in such a way where you can have a placeholder within a placeholder?
E.g. %string_substring_%string_indexOf_this/0/is/1/a/2/test_/0/%_this/0/is/1/a/2/test%
Essentially, returning the index where /0/ appears and creating a substring from that index.

junior musk
#

some placeholders support nested placeholders with {}

cunning charm
junior musk
#

%string_substring_{string_indexOf_this/0/is/1/a/2/test_/0/}_this/0/is/1/a/2/test%

cunning charm
#

Legend, thank you 🔥

cunning charm
#

Is there a different way to format this? I'm trying to use a placeholder, in a placeholder, in a placeholder.
/papi parse me %string_substring_{math_{string_indexOf_this/0/is/1/a/2/test_/0/}+3}_this/0/is/1/a/2/test%
Throwing this error: https://pastebin.com/ETA8PbjD
I think it's trying to the the wrong placeholder.
When I do /papi parse me %math_{string_indexOf_this/0/is/1/a/2/test_/0/}+3%, this returns the expected result.

#

[17:16:12 WARN]: [PlaceholderAPI] [math] Cause: '{string' is not a valid number for precision! Makes me think it's trying to use the %math_[precision]:[rounding]_<expression>% placeholder.

vivid sparrow
#

You cant have a placeholder inside a placeholder inside a placeholder

twin breach
#

hi I made a top10 players that mine diamonds the most, but I saw that if I put blocks and break them with soft touch it also counts, is there any way to not count.

#

%statistic_mine_block:diamond_ore%

#

is there any way to count only those that were generated by the world?

#

because if not I can keep putting the block and breaking it with soft touch and get infinite points

quartz pendant
#

When i did something similar what I did was use the number of diamond blocks mined minus the number placed as the score, two people could get away with this as a team but it would take people competing to have team work so for small temporary competitions it works as a bit of slight of hand trickery because i didn't tell them i was keeping track of how many were placed too

frosty burrow
frosty burrow
#
// normal
function example() {
    // no target specified
    if(args.length !== 1) {
        return false
    }

    // target (1 ~ )
    var target = parseInt(args[0]) - 1

    // plyer object
    var players = BukkitServer.getOnlinePlayers()

    // get display name of player
    return players[target].getDisplayName()
}

example()

// compact version
function example() {
    if(args.length !== 1) return false
    return BukkitServer.getOnlinePlayers()[parseInt(args[0]) - 1].getDisplayName()
}
#
#first online player's displayname
%javascript_example_1%
#

Or you can just use PlayerList

/papi ecloud download playerlist

%playerlist_online,normal,yes,<index>%
south mist
#

Uhm, this just broke today for some reason: diff ! [Tue 08:29:18 WARN PlaceholderAPI] [math] Invalid Placeholder detected! ! [Tue 08:29:18 WARN PlaceholderAPI] [math] Placeholder: %math_CEILING({server_ram_used}/{server_ram_total}*100)[precision:0]% ! [Tue 08:29:18 WARN PlaceholderAPI] [math] Cause: 'CEILING(1594/2768*100)[precision:0]' is not a valid Math Expression.

#

and yes I have downloaded math

turbid tide
#

the [precision:0] was changed in one of the newer versions

south mist
#

I just did /papi ecloud download math

turbid tide
#

yeah that means you're probably on the latest version.

south mist
turbid tide
#

try %math_0_CEILING({server_ram_used}/{server_ram_total}*100)%

south mist
#

ok

south mist
#

it worked thanks

molten wren
#

Hey,

#

i wanted a bit of help

#

i am using Bungee placeholder api

#

i found the PlaceholderAPI.setPlaceholder method but it's not updating

#
runTimer(40, () -> {
            final File file = FileUtil.getFile("signs.yml");
            if (!file.exists()) return;
            final SimpleYaml config = FileUtil.loadConfigurationStrict(file);
            if (config.getConfigurationSection("Signs") == null || config.getConfigurationSection("Signs").getKeys(false) == null) return;
            config.getConfigurationSection("Signs").getKeys(false).forEach(s -> {
                final TpSign tpSign = TpSign.getSign(s);
                if (!(tpSign.getSignLocation().getWorld().getBlockAt(tpSign.getSignLocation()).getState() instanceof Sign)) return;
                Sign sign = (Sign) tpSign.getSignLocation().getWorld().getBlockAt(tpSign.getSignLocation()).getState();
                String replacedPlayerCount = "";
                for (Player player : Remain.getOnlinePlayers()){
                    replacedPlayerCount = PlaceholderAPI.setPlaceholders(player, "%bungee_" + tpSign.getTargetServer() + "%");
                }
                sign.setLine(0, sign.getLine(0).replace("{player_count}", replacedPlayerCount));
                sign.setLine(1, sign.getLine(1).replace("{player_count}", replacedPlayerCount));
                sign.setLine(2, sign.getLine(2).replace("{player_count}", replacedPlayerCount));
                sign.setLine(3, sign.getLine(3).replace("{player_count}", replacedPlayerCount));
                sign.update();```
#

it works once but then it doesn't update it

#

for some weird reason

vivid sparrow
#

This is not needed btw

                String replacedPlayerCount = "";
                for (Player player : Remain.getOnlinePlayers()){
                    replacedPlayerCount = PlaceholderAPI.setPlaceholders(player, "%bungee_" + tpSign.getTargetServer() + "%");
                }```
Can simply be `String replacedPlayerCount = PlaceholderAPI.setPlaceholders(null, "%bungee_" + tpSign.getTargetServer() + "%");`
#

also, make sure it reaches the end of your code

jolly crystal
vivid sparrow
#

You can use inspect to see

jolly crystal
#

I'm on mobile. And it's showing the colors hence why I am asking xD

vivid sparrow
#
function test() {
}```
#

js

jolly crystal
#

Can't attach files 🤦

vivid sparrow
#

Yeah, it is js

frosty burrow
#

yes it's js

molten wren
tender vaporBOT
molten wren
#

sorry barry my friend

molten wren
tender vaporBOT
vivid sparrow
#

Print the result of setPlaceholders to console

twin breach
#

can someone please help me solve this, is there a way to solve the problem when a player puts the block on the ground and breaks the statistic_mine_block:diamond_ore%

#

or when you use soft touch it also counts, you can farm infinite points, for example, I break a block with soft touch and put it on the ground, I do this several times.

molten wren
#

the placeholder in the sign is changed

#

but it's never getting updated

#

i havea custom sign placeholder {player_count} and it's getting changed to %bungee_lobby% perfectly

#

but it's not getting updated

#

should i create a runnable and set %bungee_lobby% to %bungee_lobby% again and update the sign?

vivid sparrow
#

well, that makes sense

#

bruh

#

you need to replace placeholders from the original string

#

once {player_count} replaced with the value of %bungee_x%, next time nothing will happen because theren's no more {player_count}

molten wren
#

yea

#

so i have to change %bungee_x% to %bungee_x% right?

vivid sparrow
#

no

twin breach
#

gaby help me pls

vivid sparrow
#

get the lines from config, replace the placeholder(s) and then set the on the sign

twin breach
#

I am being ignored

tender vaporBOT
twin breach
#

ok sorry

molten wren
#

i have to do something like this right ?

twin breach
#

but I have been waiting for help since yesterday

vivid sparrow
#

No, you can't make the expansion ignore placed blocks because it can't differentiate them

molten wren
#
String replacedPlayerCount = PlaceholderAPI.setPlaceholders(player, "%bungee_" + tpSign.getTargetServer() + "%");
                    sign.setLine(0, sign.getLine(0).replace("%bungee_" + targetServer + "%", replacedPlayerCount));
                    sign.update();
vivid sparrow
#

no

#

It is the exact same thing

molten wren
vivid sparrow
#

idk man, where you keep the formats of your signs

molten wren
#

but thats what i am doing

twin breach
#

gaby is there an expansion for this?

vivid sparrow
#

No is not, you use the current line of the sign, which no longer has any placeholders

molten wren
#

i am setting the line then i get the original line and replace {player_count} with a placeholder %bungee_lobby%

vivid sparrow
#

sign.setLine(0, sign.getLine(0)

#

look at this

#

if line 0 is Online: {player_count}, when the runnable runs the first time, it will become Online: X

molten wren
#

yea

#

but then it's not going to change anything

vivid sparrow
#

ok, and if you use getLine(0) you will get Online: X, not Online: {player_count}

molten wren
#

as there is nothing called {player_count} anymore

#

yeas

vivid sparrow
#

Good, if you understand that, now change your code

vivid sparrow
molten wren
#

okay hear me u

#

up

twin breach
#

isn't there anyone who has solved this problem?

vivid sparrow
#

probably a custom plugin

molten wren
#

I have a way of gettings target server , and there are many signs thats why i am iterating through every sign and seting this info as it's important.. the thing is i don't know how can i update the placeholder.. maybe settings it into "" then setting it back to %bungee-lobby% ...

vivid sparrow
#

Do you store the default text somewhere? the one with all placeholders

molten wren
#

so when people create a sign (sign is not org.bukkit block it's a custom class

molten wren
vivid sparrow
#

Store the text that's written on the text and then use it

molten wren
#

Ooo now i get it

thin coyote
#

This plugin is very important

#

Need 1.19 support

vivid sparrow
#

I think it works, no?

smoky egret
#

hey guys i really don't get this. i have literally exhausted every single google search for 3 pages.
%statistic_jump%_alltime_#1
i just can't get this to display the #1 player who has jumped the most. where am i going wrong? i have player papi installed too. im using this in holographic displays

vivid sparrow
#

There are no tops in the statistic expansion

thin coyote
tender vaporBOT
exotic dew
# tender vapor

This for when I try and parse %parseother_{objective_entryposhigh_{Indiv_Coins}_{1}}_{luckperms_prefix}%, it is the error

primal steppe
#

are there any default placeholders in PAPI that require no expansions installed

turbid tide
#

but expansions don't need to be external. They can be built inside other plugins

slate anvil
#

[16:47:11] [Server thread/ERROR]: [PlaceholderAPI] Failed to load expansion class StatzExpansion - One of its properties is null which is not allowed! [16:47:11] [Server thread/ERROR]: [PlaceholderAPI] java.lang.NullPointerException: The expansion version is null! at java.util.Objects.requireNonNull(Objects.java:233) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:166) ~[PlaceholderAPI-2.10.10.jar:?] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?] at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?] at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?] at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?] at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257) ~[?:?] at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248) ~[?:?] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?] at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:709) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$3(LocalExpansionManager.java:327) ~[PlaceholderAPI-2.10.10.jar:?] at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[PlaceholderAPI-2.10.10.jar:?] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[patched_1.17.1.jar:git-Paper-408] at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:483) ~[patched_1.17.1.jar:git-Paper-408] at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1229) ~[patched_1.17.1.jar:git-Paper-408] at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:319) ~[patched_1.17.1.jar:git-Paper-408] at java.lang.Thread.run(Thread.java:831) ~[?:?]

Any idea how i can fix this?

lethal basin
smoky egret
smoky egret
#

o shit mb

vivid sparrow
#

It was never handled by placeholderapi

#

You are most likely talking about LeaderHeads which had papi placeholders

smoky egret
#

ah i couldn't get it working with leaderheads either. at a dead end lol

twin breach
#

i, sorry to ask, but doesn't anyone here have an expansion that corrects the fact that it only counts if people get the blocks generated by the world? %statistic_mine_block:<material>%

#

is that it becomes easy to manipulate, just put it on the ground and break it and get infinite points.

#

if someone has a solution, please let me know.

open crow
#

PlaceholderAPI just stopped working when I was updating other plugins, I have no idea why.
Server version: 1.17.1
API version: 2.11.1 (Latest)

turbid tide
#

restart the server and send the startup log

tender vaporBOT
turbid tide
#

its nowhere near perfect but its an easy solution

turbid tide
twin breach
#

how would I use this?

#

%statistic_mine_block:diamond_ore%

turbid tide
#

%math_0_{statistic_mine_block:diamond_ore}-{statistic_use_item:diamond_ore}%

open crow
#

?paste

tender vaporBOT
turbid tide
#

I believe should work

vivid sparrow
#

It will not, blitz

turbid tide
#

is use not also used for place?

vivid sparrow
#

Because if you place blocks without breaking them, it will just return a wrong value xD

tender vaporBOT
turbid tide
#

and it is janky. but I don't assume they will make a plugin for this so I gave them the only simple solution out there janky as it is

turbid tide
#

and restart the server

turbid tide
#

no problem

tender vaporBOT
upper anchor
#

Hello, I am using placeholderapi javascript to output the desired command to the console depending on the result of placeholder, I am facing the problem of constant errors. The documentation says: Just like the player, the server is also passed along to the placeholder script when called. The server may be accessed using BukkitServer. After receiving, you can access all of the server methods included in the Spigot API.
||https://github.com/PlaceholderAPI/Javascript-Expansion/wiki/Advanced-Scripts#player-information||

https://paste.helpch.at/ijeremahar.js

I think I've tried every combination of this command that I can think of

junior musk
#

try to use server.getConsoleSender() and remove the var vbukkit line

upper anchor
#

doesn't work

junior musk
#

can you show your updated file?

#

and can you send the errors?

upper anchor
junior musk
#

I'm not sure what's the problem =/

#

I don't see anything wrong

upper anchor
#

vbukkit.getConsoleSender().sendMessage("test")
I was using before, and it worked by sending a message to the console
(I already tried vbukkit instead of server)

junior musk
#

uh

#

Oh

#

I think I see why

#

I think the placeholder is ran async, but you can't dispatchCommand in async, only sync

#

what are you trying to do? execute a command through the console or send a msg to the console?

upper anchor
#

console command

#

If the placeholder = yes, then it executes a command that gives the player the permision I want

junior musk
#

are you using the placeholder in TAB ?

upper anchor
#

Yes, but only to check if it works.

junior musk
#

oh

#

use /papi parse me <placeholder> to check then

upper anchor
#

It's working, thank you 😄

austere hawk
austere hawk
#

woops sry 4 reply ping

turbid tide
tender vaporBOT
turbid tide
#

which you can get here

placid light
#

Hello
is there any placeholderapi placeholder that can do next:

check if another placeholder is numerical

example:
%player_stats% when parsed outputs 1
%player_position% when parsed outputs left

now we use %check_if_numerical_output_{player_stats}% when parsed will output for example yes
%check_if_numerical_output_{player_position}% when parsed will output no

#

is this possible/

smoky egret
smoky egret
#

i have mvdw, papi, leaderheads. none seem to work.

silver minnow
vivid sparrow
#

Idk @trim mist

trim mist
#

For what

#

I just haven't compiled under it. It might still work.

deft crest
#

Is there a Statistic placeholder that can output the total number of ender dragon deaths for example?

#

It is common, not just one player, but all together

smoky egret
#

anyone know why %leaderheads_name_{statistic_jump}_daily_1% doesn't work?

twin breach
#

%math_0_{statistic_mine_block:diamond_ore}-{statistic_use_item:diamond_ore}% There is no way to remove this - ?

wispy hull
#

[17:35:24] [Server thread/WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: dameCristal
[17:35:24] [Server thread/WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: dameStatus
[17:35:24] [Server thread/WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: dameTitulo
[17:35:24] [Server thread/WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: cooldown
[17:35:24] [Server thread/WARN]: [PlaceholderAPI] Failed to set ScriptEngine for javascript placeholder: cooldowns

#

Ughh

#

What to do

twin breach
mint fable
#

what are you wanting to remove?

mint fable
wispy hull
#

dameCristal:
file: dameCristal.js
engine: nashorn
dameStatus:
file: dameStatus.js
engine: nashorn
dameTitulo:
file: dameTitulo.js
engine: nashorn
cooldown:
file: cooldown.js
cooldowns:
file: cooldown.js

#

What is the engine?

#

here

#

oghhh

#

sorry

#

It now dosen't even apear

#

In deluxemenus

mint fable
#

what doesn't appear

#

these placeholders have nothing to do with deluxemenus

deft crest
#

Is there a Statistic placeholder that can output the total number of ender dragon deaths for example?

mint fable
#

Obviously, you've bought/downloaded a package for deluxemenus/placeholderapi

#

I've seen it before

mint fable
deft crest
#

Ok, thanks❤️❤️❤️

#

And here is a more complicated question, whether it is possible to make the time is displayed depending on the number, I mean the words. For example, not 1 day, but 1 day. And so with the hours and minutes.

#

If you use this. But I don't understand how it can be implemented. Has anyone from here done this?

mint fable
#

Yes, what are you trying to format?

wispy hull
mint fable
#

?startuplog

tender vaporBOT
mint fable
#

can you send that over

deft crest
#

I use Statistic, and output the played time

mint fable
#

and send over your deluxemenus file @wispy hull

#

%formatter_number_time_fromSeconds_<number>% most likely

deft crest
#

I use 3 values, day, hour, minute

mint fable
#

you want to use all 3?

deft crest
#

Well I have it in turn, if he played only 3 hours, then displayed only 3 hours, 0 minutes, if it is already 2 days, then displayed all together

mint fable
#

err

#

%formatter_number_time_fromMinutes_{statistic_minutes_played}%

deft crest
#

I just do not understand how to make the correct display of endings, at the moment I can display this:
2 days (singular) 3 hours (plural) 31 minutes (singular)

mint fable
#

why is 2 days singular?

#

and 31 minutes?

#

both of those are plural

deft crest
#

I just do not know how to explain it to you in English to make you understand🥺😔 I, for example, have a word in the plural when there is a number 1, and this should be when the number 2.

mint fable
#

I feel like you're going to have to make a custom javascript

#

I thought I had one, but I do not

deft crest
#

Meaning.
Not 1 days played, but 1 day

mint fable
#

Yes, it was confusing with 2 as the example earlier

#

I get it now

deft crest
#

How can I implement this in Js?

#

%formatter_number_time_fromMinutes_{statistic_minutes_played}% What condition should I set for this placeholder?

mint fable
#
var timePlayed = parseInt("%statistic_seconds_played%");
var out = "";
if(timePlayed>=86400){
  var days = timePlayed/86400;
  timePlayed -= days*86400;
    out = days+" day";
  if(days!=1)
    out = out+"s";
}
out;
#

something like that maybe

#

wrote it in discord so

#

then add hours, minutes, etc.

deft crest
#

I've been agonizing with this question for two days now, but I'd appreciate it if you could help me out. 🥺❤️

#

Wow

#

I will try this in a few hours, thank you so much for the tip!

#

Thank you so much again for your help! ❤️❤️❤️❤️I hope everything works out, I'll try to figure it out, if I have any questions, can I contact you later?

mint fable
#

Yep you can always ask here

deft crest
#

Thanks!❤️

crisp storm
#

How would I get a specific rank's prefix?

limber ice
#

@crisp stormLP?

crisp storm
#

Yes

twin breach
#

it really works but how do I remove the - there is no way?

#

" - "

#

For example, I have mined 10 blocks of diamonds and instead of showing only the 10, it shows -10.

#

%math0{statistic_mine_block:diamond_ore}-{statistic_use_item:diamond_ore}%

limber ice
#

using %luckperms_prefix%Returns the player's prefix

crisp storm
#

Thank you, but I'm trying to get a specific rank's prefix

limber ice
crisp storm
#

Thank you, I ended up making my own placeholder

elder palm
#

It is possible with the element placeholder %luckperms_prefix_element_<element here>% where elements are any of the stacking rules you see in the luckperms config for meta-formatting. Example %luckperms_prefix_element_highest_on_track_staff%

tender vaporBOT
wispy hull
#

I couldn't send more

mint fable
#

send it in a paste, that's why

#

?paste

tender vaporBOT
mint fable
#

?startuplog

tender vaporBOT
mint fable
#

have you heard of mastercooldowns?

wispy hull