#placeholder-api
1 messages ยท Page 165 of 1
Both the precision and rounding can be omitted to use the corresponding setting in the config.yml of PlaceholderAPI. just that line
which I skipped over 3 times while reading this page because of the huge examples lmao
well its Andre's wiki. ain't going to edit it. ask him if you think its not good enough.
or you can pr as well I guess
yes I definitely think it's not good enough
considering how many times I have been confused as a staff member, that's kind of a problem eh?
well then edit.. or ask andre to smh
๐ฅฒ
also is there a way to delete exactly 48 plain coal items using checkitem placeholder?
%checkitem_remove_mat:coal,strict,amt:48% probably
if i have 49 coal for example, it won't work
it removes it if the strict is gone?
oh
pretty sure
strict will check
if the total amount is 48
as well
ye but it might accidentally delete custom items under the coal material
yeah Ic what you mean. @mint fable will have to take a look at this. because rn if strict is enabled, it will also check so the amount is strict as well
any way to remove that for the remove feature CJ?
alr ty ๐
hello can somone help me? my factionsuuid isnt working for my scoreboard, but i have placeholderapi installed
have you tried the placeholder with /papi parse ?
whats that?
which placeholder isn't working
factionsuuid
placeholder please. not expansion. give us an example of 1 placeholder from that expansion that doesn't work
factionsuuid_faction_name
can you please test it with the command /papi parse me %factionsuuid_faction_name% ?
and tell me what output it returns
%factionsuuid_faction_name%
alr. will need you to also do /papi dump now and send the generated link here
hmm seems like you have 2 factions expansions and none registered. can you please go to plugins/PlaceholderAPI/expansions and delete the Expansion-factionsupdated.jar and then also delete Expansion-FactionsMCore_Y4...jar as well
then do /papi ecloud download factions then /papi reload
Failed to find an expansion named: factions
ah.
/papi ecloud download factionsupdated then /papi reload
also which factions plugin do you have? can you link me the spigot or page you got it from?
you can find them here. https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#factions-mcore
but that expansion is made for MCore and forks
idk what savagefactions is. is it a fork of fuuid?
no clue, but the factions mcore placeholders arent working for me
looks like you might want to consider factionsx
savagefactions isn't supported anymore
and it has a conversion tool!
or maybe FactionsUUID. if you got the money for it I guess . bcz I Know its paid
oh factionsx?
what's that
the guy who made savagefactions hated working with a shitty codebase
so he rewrote factions from scratch in kotlin and named it factionsx
oh nice
so yeah Baltias here's link https://www.spigotmc.org/resources/factionsx.83459/
its free
i opened my factions config and it says FactionsUUID by drtshock
and you convert the stuff for free as well
oh
well you don't need any expansion for that one
here's a list of placeholders https://factions.support/placeholderapi/
Premium Factions for premium people.
yea, thos thon work, i gues il just have to switch to factions x
probably best to use a plugin that's actively supported lmao
pretty sure fuuid is supported just dk how good the support is xD
yeah ik. but since he has it he can use it. idk I don't care. xD just saying
Thanks for the help guys! have a gooD day ๐
you're welcome. you too ๐
Would someone be willing to make a custom placeholder that displays the amount of characters in an input for me?
ugh that's like 2 lines in javascript
I have no idea how to do it
Ok thanks
does anyone know how many character can fit in to minecraft score board becouse some of my text is getting cut off
that depends on your server version and plugin you use
ok
if you're on 1,13+ tho, most scoreboard plugins will allow unlimited characters
How can I use the JavaScript expansion?
An expansion that allows you to use javascript for processing
โข Wiki
โข Community Scripts
โข GitHub
โข eCloud
these are some usefull links ^
thanks
what would the javascript look like for a placeholder that displays the amount of characters in an input
heya, is there any chance to get objective_score with position numbers output? like %objective_score_objectivename_posX%
would be nice to output 3nd 2nd and 1st place of a minigame in something with that
var length = "%input_length.test%"; how can I separate .test and use it as a variable?
so lets say you make a javascript file called length and you declare it in javascript_placeholders.yml as yml length: file: length.js then you do /papi reload and you go to plugins/PlaceholderAPI/javascript you will find a length.js file.. you add js args[0].length
then you do /papi reload and then you just use %javascript_length_INPUT-HERE%
and it will basically tell you the length of the input
you can also use placeholders as the input but you'll have to use them using {} instead of %%
I Don't think that's possibly. You will probably have to use a plugin like LeaderHeads or AjLeaderboards to create the leaderboards
Wow thanks so much I think this will help a lot
i believe the color in %player_colored_ping% is error
ugh
what error exactly? also btw if you're on 1.17 you'll have to make sure you're on the latest version of the Player expansion
i still using 1.16.5
since i still stuck with 4 plugin that not support yet
the color is in odd sequence , 0 ping is suppose to be good when parse return color red, when ping is like 2000 it will return green
still make sure you have the latest player expansion
that was fixed like 2 versions ago
can you do a /papi dump please?
also a /papi reload first
ohhhh
@hard basalt think the problem is in your config
go to plugins/PlaceholderAPI/config.yml
there will be a ping_color option
I Think they're reversed there.
nope not needed anymore. if the config is the problem
yes the format in config is
player:
ping_color:
medium: '&e'
high: '&a'
low: '&c'
is this an outdate version ?
this same for tps too
what hook exactly?
the placeholder hook part in the config file
so the color basically? yeah it still works
it still takes info from the config file
....
it in my config file for some reason
if i remember correct this 1 is use when the old hooking method is used
here is the full config file if u find sth no longer or should not be u can tell me https://paste.helpch.at/arosijivat.bash
yeah that's not used anymore
you should probably backup your config, delete it, do /papi reload and just edit the newly generated one
since the unused options will be gone
k
seem like nothing to edit , the ping format also fixed
seem like the old config define low as "lag"
yeah. it was a known bug and was fixed
alr thanks
Is it possible to have completely custom placeholders in the JavaScript expansion without %javascript_placeholder%
I'm afraid I Don't fully understand what you want
you want a placeholder made in javascript
but have it not start with javascript ?
if that's what you want then no, I recommend you learn java and make your own expansion if you really don't want the javascript there
Ok thanks I am starting to learn Java
Is there a way to add as argument a placeholder inside one?
Like
%javascript_ToSeconds_%rtp_cooldown%%?
use {} instead of %% for the nested placeholders. basically like this %javascript_ToSeconds_{rtp_cooldown}%
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
I have added 100 coins to me and i see scoreboard i have 0 coins
So I use Featherboard and no placeholders are working. I have the expansions needed and even tried using the command /papi parse me {player} and it returns {player}
which version of featherboard
Featherboard 5 and above uses PlaceholderAPI for placeholders instead
And with that, it means you use %% instead of {}
and it means you use %player_name% instead of %player%
i tried using %% as well
and you have to download the player expansion if you don't have it
oh ok
?player
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
run those commands ^
i had the expansion didn't realise things had changed a bit thank you
Sweet thank you again ๐
How can I make my head appear, and the other one has his own? In the menu
?dm-heads
How to use custom heads in DeluxeMenus:
a) A player name material: head-extended_clip
b) The player's head material: head-%player_name%
c) The base64 code of a head material: basehead-<code>:
- Go to https://minecraft-heads.com and find a head.
- Copy the head Value code (from the page bottom)
d) The minecraft texture url material: texture-<id>
- Only put what's after https://textures.minecraft.net/texture/
e) EpicHeads material: heads-<id>:
- Require https://www.spigotmc.org/resources/13402/
f) HeadDatabase material: hdb-<id>:
- Require https://www.spigotmc.org/resources/14280/
Can you share the code? Use pastebins
Yes
There you have sir
I think the proble its that im using Player instead OfflinePlayer in onPlaceholderRequest
Sure
I think OfflinePlayer is in onRequest
but maybe your problem is just that your scoreboard plugin isn't refreshing the placeholder
check with /papi parse me %acoins_coins% if it shows correctly there
if it's correct, then that means it's the scoreboard not refreshing correctly
so
I'm not sure to be honest
@ripe iron have you tried printing this? Main.getInstance().getApi().getCoins(player)
my assumption is that method returns 0
Yes i tried
When i execute /coins bal i said my reals coins
And in my /coins bal return that method
ok
public String onPlaceholderRequest(Player player, String identifier) {
switch (identifier){
case "coins":
System.out.println(Main.getInstance().getApi().getCoins(player));
return String.valueOf(Main.getInstance().getApi().getCoins(player));
}```
Ahh ok
so now when you /papi parse it will also display the value in console
/papi parse me %acoins_coins%
try this please then https://hastebin.com/kogeqebotu.java
also don't forget to restart the server
don't just use plugman
or anything like that
Ahhh
I think that the problem
That im using plugman
I use plugman unload aCoins and then plugman load aCoins
ok
it breaks stuff so easily. Idk why anyone ever thought about making something like that
also same thing with the spigot /reload command
and it doesn't send you a message either?
@Override
public boolean register() { return super.register(); }```
set that to true
can I see your current class again please?
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
try this and see
if when you parse
the placeholder
you get a this is a test message
Btw now the plugin said that it laoded but then i see /pl and it doesnt there
oh
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
might want to start a full startup log
weird. it says its been enabled successfully
and placeholder still doesn't send a message?
Its enable but expansion its not being registered
have you registered it in your main class?
can I see your main class please as well?
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
nope
just the class where you register the expansion
which usually is done in your main class
PlaceholderAPI] Enabling PlaceholderAPI v2.10.5 this is your log
also according to your logs, it can't find PlaceholderAPI?
have you set PLaceholderAPI as a depend in your plugin.yml?
it might be loading after your plugin if not
i put it as softdepend
ok
He?
Util.log("info", "&3Has been successfully enabled");
none of these messages are sent
Its working
My message its sent look
getLogger().log(Level.INFO, "&3Has been successfully enabled")
huh? the log you sent before did not have it
I have stopped server and started and the mesage was sent
Yes
its after the eror void plugin error
it only shows this one [aCoins] Enabling aCoins v1.0 and this one [aCoins] Loading aCoins v1.0 which are none set by you. they're default spigot messages
the messages you're trying to send are not sent
I cant send picture buts in console its sent
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
oh. Ic
and once again what's happening when you parse the placeholder? all you get is 0 ?
nothing else?
Not
Its isnt rbeing registerer now
Oh mny good i have restarted more than 20 times the server
xdd
I do papi list and the placeholders werent registered
are you on the latest version of PAPI?
Yes
It make no sense
Oh my good i not understanding what happening
I will go to drink omething
So?
What i should do?
tbh Idk xD
did you try updating to 2.10.10? placeholderapi I mean
is the placeholder still registered?
Nop it doesnt register
is your project on github by any chance?
I send the message that was registered but it inst registered
I can upload it
Do you want?
I'm going to sleep soon. can't really look at it.
you might want to ask in #development
share the main class and placeholder class with them as well
Good night
oh wait @ripe iron you don't have a constructor for your placeholder class
tho
wtf is that emote?
xD
or does java create a default one? I'm not even sure xD
I want the player name in my holo display, can somebody help me
Ive downloaded papi player
Used %player_name% %player_displayname%
{player_name}
wtf
You have 2 bungee expansions in your expansions folder. plugina/placeholderapi/expansions
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
Hd doesn't support PAPI. You neeed Holographic Extension as well and Protocol Lib.
Then just use %player_name%
I will also add to that I don't think the extension works on 1.17+ yet. I've reached out to author a few times and have had no response from them.
Please respect the rules, be patient and don't ping staff members!
It works
Yeah. Should work fine on 1.17.1. there was just 1 guy that had problems with jt
It*
But I'm pretty sure we found out it was a plugin messing with it. Also with a few more bungee related things
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
yeah the problem is one of the expansions. dk which one. but I recommend deleting them all and redownloading
1 by 1
this helped thanks ๐
Please respect the rules, be patient and don't ping staff members!
Hii guys!
Can somebody pls help me with my placeholders
Ive i try to do /papi reload
it isnt working
What error in console
I cant send in chat
9.07 19:37:51 [Server] Server thread/ERROR [PlaceholderAPI] failed to load class files of expansions
Only the FactiosUUID is working
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
You have normal Factions or Factionsuuid?
do I have to manually enable the OfflinePlayer object? I have 3 plugins that claim to support it but none of them seem to be working.
huh enable it where? In placeholders?
then no. As long as they use the onRequest method instead of the onPlaceholderRequest one it should work
[21:26:13 WARN]: at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:433)
[21:26:13 WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:586)
[21:26:13 WARN]: at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:519)
[21:26:13 WARN]: at java.base/java.lang.Class.forName0(Native Method)
[21:26:13 WARN]: at java.base/java.lang.Class.forName(Class.java:375)
[21:26:13 WARN]: at com.extendedclip.papi.expansion.server.ServerExpansion.<init>(ServerExpansion.java:64)
[21:26:13 WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[21:26:13 WARN]: at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
[21:26:13 WARN]: at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[21:26:13 WARN]: at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
[21:26:13 WARN]: at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
[21:26:13 WARN]: at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:393)
[21:26:13 WARN]: at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:162)
[21:26:13 WARN]: at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
[21:26:13 WARN]: at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179)
[21:26:13 WARN]: at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
[21:26:13 WARN]: at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
[21:26:13 WARN]: at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
[21:26:13 WARN]: at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
[21:26:13 WARN]: at java.base/java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257)
[21:26:13 WARN]: at java.base/java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248)
[21:26:13 WARN]: at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[21:26:13 WARN]: at java.base/java.util.stream.ReferencePipeline.count(ReferencePipeline.java:709)
[21:26:13 WARN]: at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$3(LocalExpansionManager.java:327)
[21:26:13 WARN]: at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46)
[21:26:13 WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100)
[21:26:13 WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468)
[21:26:13 WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1135)
[21:26:13 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316)
[21:26:13 WARN]: at java.base/java.lang.Thread.run(Thread.java:831)```
update
Update what?
PlaceholderAPI
actually
redownload the Server expansion
/papi ecloud download Server
/papi reload
thanks ๐
โค๏ธ
@flat spruce your issue has also been fixed
Update it @@
looks like the NBTApi expansion is having a hard time lol
its not our job to update it. We don't even have access to the code... the plugin is old af. just use a more updated one
just google PlayTIme spigot
or something
Hi all. Is someone still reviewing PR's to PAPI expansions? Opened a PR on sunday to a repository with a similar PR from august '20 still open without any comments
Depending on the expansion
I'd prefer to remove the outdated and non-functional DeluxeChat-hooks from USB and redirect to this expansion, but it's not working at the moment haha
Seems easier for users then releasing our own expansion with the plugin or something like that
Especially since it's already in the eCloud system
I can transfer the expansion to you if you'd like to continue to update it, assuming @sudden slate is happy with that as he's the current owner
Whatever works for you guys, I don't mind. Don't want to get pushy, just curious if there's still activity ๐
Some expansions tend to get overlooked as we have quite a few
Yeah I can understand hehe
Dub
Is that a yes or no lol? 
nah he was talking about Dublin
Imma head off towards the store for now haha. If you prefer to transfer the expansion, I'm fine with that. Otherwise, I'll keep opening some PR's in the future and drop a line here if there's no response after some days. I'm planning to add some additional placeholders to match what we (used to) offer for Maxim's api.
Sure
Let me know your ecloud username and i'll make the transfer
cube can I get an account as well?
Give me a sec to register an account haha
ah you wont be able to
Sure!
bliss!
Please respect the rules, be patient and don't ping staff members!
Hello guys, a query someone will know why I get this error?
[PlaceholderAPI] Failed to load expansion class VaultExpansion - One of its properties is null which is not allowed!
I already did, but it keeps giving me the same error
Do you have Vault installed?
Yes
make sure you don't actually have 2 vault expansions in your expansions folder
Is there more error beneath that? I thought I had it print the stacktrace
and that would be at least slightly useful in tracking down which property is null
this is from one
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
They are 3. One is from 'vault', the other from 'essentials', and the last from 'server'
All of their expansion versions are null? Weird
Hey send one of those over
I would like to see if it is actually null
In which case you might have a virus or somethin
Won't let me send files
oof
then nevermind
that is very weird though
maybe try a local server and see what happens?
Could compare jar file sizes
Expansion-essentials 9.14kb
Expansion-server 10kb
Expansion-vault 15.4kb
My essentials expansion downloaded from the ecloud website is 9.37kb
Try downloading all those from the website and FTPing them onto your server
Hello! Will placeholders support Gradient colors?
The luckperms support it but when i parse the %luckperms_prefix% placeholder i only get the format of gradient color �....
yeah. and then its up to the plugin you parse it in to parse the colors
when 3.0 comes out there will be Component support and will be a lot more integrated but at the time this is the only way
So if i see gradient color code in my scoreboard then scoreboard plugin doesnt support it ?
Where can i send screenshots ?
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.
read this please ^
https://imgur.com/a/wIqP6Rq here i am using AnimatedScoreboard
any1 know how can i add placeholder into vault suffix ?
I have papi ecloud Statistics and placeholder for playtime is not working. Any fix for this ?
Startup Log Location
Your latest startup log can be found in the logs folder of your
server directory, labeled as latest.log.
Please copy the contents and paste them to a paste service.
Type ?paste for more information.
please send over the full startup log ^^
?paste
Paste Services
When asking for help with a config/menu/code issue please use our paste bin:
(we prefer it over pastebin.com)
โข HelpChat Paste - How To Use
A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!
which one of the play time placeholders did you try?
Im using this one %statistic_time_played:hours%
ah I'm pretty sure those are broken indeed.
you can use %statistic_hours_played% instead
I parse it and it shows 0
In minecraft statistics i have all on 0
So i think the problem is somewhere else but i dont know where..
that work for me though
hmm yeah. the expansion takes the statistics from spigot which takes them from minecraft
but for some reason I guess they are not registered
It just randomly stop working
you might want to ask in the discord of the server software you use (paper, spigot etc.)
also by any chance did you delete your main world?
or change it?
because that's where the stats were stored
hello I have a plugin download and that name is dailyreward but if I put an ipa in it he doesn't know what to do anymore
an ipa?
Where can I get an account to upload an expansion I created? ๐ค
cc: @balmy marten ^
java.lang.Throwable: null
at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:15) ~[patched_1.17.1.jar:git-Purpur-1287]
at net.minecraft.server.level.ServerLevel.getEntities(ServerLevel.java:2360) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.CraftWorld.getEntities(CraftWorld.java:1173) ~[patched_1.17.1.jar:git-Purpur-1287]
at com.extendedclip.papi.expansion.server.ServerExpansion.onRequest(ServerExpansion.java:190) ~[?:?]
at me.clip.placeholderapi.replacer.CharsReplacer.apply(CharsReplacer.java:156) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:69) ~[?:?]
at me.clip.placeholderapi.PlaceholderAPI.setPlaceholders(PlaceholderAPI.java:97) ~[?:?]
at me.neznamy.tab.platforms.bukkit.BukkitPlatform.setPlaceholders(BukkitPlatform.java:240) ~[?:?]
at me.neznamy.tab.platforms.bukkit.BukkitPlatform$2.get(BukkitPlatform.java:205) ~[?:?]
at me.neznamy.tab.shared.placeholders.PlayerPlaceholder.update(PlayerPlaceholder.java:36) ~[?:?]
at me.neznamy.tab.shared.features.PlaceholderManager.updatePlayerPlaceholder(PlaceholderManager.java:116) ~[?:?]
at me.neznamy.tab.shared.features.PlaceholderManager.lambda$new$0(PlaceholderManager.java:81) ~[?:?]
at me.neznamy.tab.shared.cpu.CPUManager.lambda$startRepeatingMeasuredTask$2(CPUManager.java:146) ~[?:?]
at me.neznamy.tab.shared.cpu.CPUManager.lambda$submit$4(CPUManager.java:180) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at java.util.concurrent.ThreadPoolExecutorPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) [?:?]```
- "&b&lChunks: &a%server_total_chunks%"
- "&b&lMobs: &a%server_total_living_entities%"
- "&b&lEntities: &a%server_total_entities%"```
in tab config
Hey, I have the expansions installed for these placeholders but they're not working?
you need holographic extension for them to work in holograms if you don't have it
=pl holographicextension
hi
i can put custom colors to this variable?
- "&7ยป %cooldownbar_{thebridge_level}%"
is it not already?
I want to put custom colors
Please respect the rules, be patient and don't ping staff members!
Can someone help me with this?
only @balmy marten can but I guess he didn't see the other ping. hopefully he sees this one.
okay thx
..
can someone help
have you tried updaring the expansion to the latest?
yes
can you do /papi dump and send the generated link here?
ill try but the spam is sooooo good i lost the link
%server_total_living_entities%
%server_total_entities%
its these 2
Think you'll have to open a issue on github.
if you don't have a github account or don't know how to make one I can make the issue for you
hey, when i execute command /papi ecloud download Parkour, PAPI said me it Not available yet
can u try manualy grab the extension from ecloud ?
do u not know how? I can guide you thru the process if not
go here: https://api.extendedclip.com/expansions/parkour/versions/, download latest version (2.0), then go to plugins/PlaceholderAPI/expansions and put it in there. then do a /papi reload
how do i view a placeholder E.G turn %player% into Zax71 i have tried /papi parse me %player% to no luck ๐ฆ
Player placeholder not working? If you are using a plugin which supports PlaceholderAPI, and the %player% placeholder doesn't work, then change it to %player_name% and download the player expansion.
Commands:
/papi ecloud download player
/papi reload
read this @twin prawn ^^^
๐
I want it through the command
ugh. why tho? its same thing
try a /papi ecloud refresh or /papi ecloud update
yup. you gotta wait a bit
but I still see this error (not available yet)
Should your host not allow connections to the PlaceholderAPI eCloud, you can manually download expansion from https://placeholderapi.com/ecloud and place them in your /plugins/PlaceholderAPI/expansions/ folder.
does this happen with every expansion? if yes then this might be for you ^^
hosts could block connections
or maybe something else
how to fix it (not available yet)
well if hosts block it there is no fix. you have to ask the host to allow connections to the ecloud
and once again. does it happen with all of them? or just the Parkour one?
I have no extension loaded, not only Parkour
but it still works /papi ecloud list all
can you try and do /papi ecloud download Player for example. see if it says the same thing?
maybe ur host is blocking connection
why then does /papi ecloud list work?
Hello,
is ParseOther functionnal in 1.17.1 ? It doesn't seems to work for me
hmm it should be. what seems to be the problem when you try it?
I get a NULL response when trying /papi parse bibithom %parseother_{player_name}_{cmi_user_deathloc}%
(just testing purpose)
I think you have to use double {} when using placeholders in the player name part
%parseother_{{player_name}}_{cmi_user_deathloc}%
that seems to work thank you !
hi
why the last part of the variable is shown in yellow? This is how I set my placeholder:
%cooldownbar_{thebridge_level}_p:&bโ _r:&fโ %
are you sure the yellow one is from the cooldown bar placeholder? try doing /papi parse me %cooldownbar_{thebridge_level}_p:&bโ _r:&fโ % in chat
and see if you still get the yellow thing
ah you might have to set the i:
one
nah
that's the default value
I Just found out
by default, the one in progress
is yellow :
sorry. yellow straight bar
try %cooldownbar_{thebridge_level}_p:&bโ _r:&fโ _i:&eโ %
๐ yw
I have another problem and it is that I level up but the bar does not change: /
%cooldownbar_{thebridge_level}_p:&bโ _r:&fโ _i:&fโ %
capi I'm a bit confused
why are you using the cooldown bar to show progression?
I think you should probably use the Progression expansion instead
what exactly are you trying to display? the levels? out of 100 for example? or what?
because that confuses me rn
I want to make a level progress bar
so how much until next level?
like this
then your approach is very wrong
like that bar
which one is that?
btw do you have placeholders fro how much until they level up?
DM me a username and email address you want and I'll create it tonight
hi
[01:47:03 ERROR]: [PlaceholderAPI] Failed to load expansion class StaffFacilitiesExpansion (Is a dependency missing?)
[01:47:03 ERROR]: [PlaceholderAPI]
what does he want from me, please tell me
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
A member of staff has requested I move your message to a paste,
Most likely because it contains a config/error/code snippet.
uh
do you have StaffFacilities installed?
and the StatzExpansion looks to be out of date
oh two days ago
try downloading it from the ecloud website instead, probably got corrupted or something
Please respect the rules, be patient and don't ping staff members!
Un related but how did you get that coin icon? Is it a utf-8 icon or build into papi?
Utf-8
so I used %player_exp_to_level%, but it said 400-something when I had 69 levels
ya just confirmed, latest Player extension. I have 69 xp levels. papi parse me %player_exp_to_level% says 463
PlaceholderAPI-2.10.10
purpur 1.17.1 b1279
d;spigot HumanEntity#getExpToLevel
int getExpToLevel()```
Get the total amount of experience required for the player to level
Experience required to level up
That placeholder isn't how many levels you have
It's how much you need to get to the next level
you probably want %player_total_exp%
or %player_current_exp%
and I am not sure what the difference is, so I would try those out
oh also %player_level% will give you your levels
man there's a lot of placeholders lol
Total is the total exp you had since you died. Even the one you used
And. Current exp is just exp above the level you are i think
There is no placeholder for just all the exp points you have. But there is a JavaScript placeholder I msde a while ago that can do this
Maybe I should pr it into the player exp? But its kinda big
I saw that the impls for total exp and current exp are like, nearly identical
one was just static i think
Hi, does anyone know the placeholder to get the world of a user ?
E.g, I'm Picsor, in world "world" and I want to type something like "%player_worldname%" and it returns "world"
it should be just %player_world%
How Do You Like link placeholderapi to a website
i want to put leaderboards in my website (using wordpress) but idk how to put placeholderapi there
%math_0_{placeholder_without_%%}%
might want to look into this: https://www.spigotmc.org/resources/rest-placeholderapi.90266/
thanks, ya based on the naming I'd never have known
Is it possible to have a place holder inside a place holder?
Say i have a place holder that gives back the players nickname
Then i have another place holder that "gradients" or color codes whatever is inputted
Can i put the nickname inside of the gradient place holder somehow?
some expansions support placeholder inside placeholder using the bracket method. not all of them do I'm afraid. here's an example: %parsoether_{player_name}_{statistic_blocks_mined}%
||maybe my NestedPlaceholders expansion can help||
How does it work?
you just put your placeholder in it and it will parse the placeholder, then parse it again a second time
and if you specify an amount before the placeholder, it will parse it # times
Ah nice
say, I have %javascript_test% which returns %javascript_name% which returns %player_name%, if you use %nested_3_javascript_test% it will go all the way and parse %player_name%
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
Anyway i did 2 commands:
/holo addline baltop 1: %vault_eco_top_player_#1%
/holo addline baltop 1: %vault_eco_top_player_1%
but both result in 1: , and then nothing the placeholder doesn't work
any ideas?
And yes i got the pack for vault installed
Holographic Displays requires Holographic Extension and ProtocolLib to support PlaceholderAPI placeholders
or if you're on 1.17 you'll have to use HOlographicPlaceholders
instead. pretty sure HE is broken or something on 1.17
Yeah I've had a few people mention that. I've reached out to him a few times and gotten no response.
Oh I didn't even realize it was open source.
Someone made a PR a few days ago.
hi , it is here for asking help about server expansion (1.12.2 version ) pls ?
you can ask here for help yeah
okay , so i use papi for a scoreboard with the player expansion and the server expansion , the issue is that the server expansion doesnt register when reloading
i did download both with the command /papi ecloud
the player works very well though
you'll probably have to manually download it then
i did it too
and?
but the error is the same
oh so you get an error?
hmm @errant iron u got any idea what this is?
in case : im using Papi 2.10.10
I have both but it ain't working
Hmm it looks like the expansion version is null. I would download it from the website and see if that fixes it
ok thanks i'll try this out
Please respect the rules, be patient and don't ping staff members!
For some reason I cant do /papi reload?
The plugin is added, and it wont reload?
Please help
yes it does
Ill get the error now
alr
Please use a paste service to share configs, errors, code and long logs.
โข HelpChat Paste
oh what
that's... an interesting error
ohhh
i know why it's happening
gimme a min
actually what placeholderapi version do you use? @random rock
ok
1.8.8
1.12.2
1.13.2
1.14.4
1.15.2
1.16.5
1.17
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.9 - Latest
v2.10.10 - Dev Builds
v2.10.10 - Dev Builds
@random rock those are the latest for each version ^
ohh wait
noo this isn't placeholderapi's fault
i read the error wrong
PlaceholderAPI-2.10.10.jar
it's CommandWatcher... can you link me to the bukkit/spigot page?
yep, it's too old
spigot has changed some of its code, so the code is trying to access its old code
..but the old code isn't there anymore
yes
all goods!
btw @random rock I just checked the docs, as I said here, the code was changed, and it was changed in 1.7.10
So if that was the only issue with the code, then as long as the plugin was updated/made in 1.7.10 or above, it should work (but it's still really old, so no guarantees, I'm just saying that this specific issue would be resolved)
okay cool, thanks
23.07 03:58:22 [Server] INFO [PlaceholderAPI] Placeholder expansion registration initializing...
23.07 03:58:22 [Server] INFO [PlaceholderAPI] Fetching available expansion information...
23.07 03:58:22 [Server] WARN Boat (vehicle of SkunkSonic) moved wrongly! 0.713583252958415
23.07 03:58:22 [Server] ERROR [PlaceholderAPI] failed to load class files of expansions
23.07 03:58:22 [Server] INFO java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: me/clip/chatreaction/events/ReactionWinEvent
23.07 03:58:22 [Server] INFO at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
23.07 03:58:22 [Server] INFO at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?]
23.07 03:58:22 [Server] INFO at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1766) ~[?:?]
23.07 03:58:22 [Server] INFO at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
23.07 03:58:22 [Server] INFO at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
23.07 03:58:22 [Server] INFO at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
23.07 03:58:22 [Server] INFO at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
23.07 03:58:22 [Server] INFO at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
23.07 03:58:22 [Server] INFO at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
23.07 03:58:22 [Server] INFO Caused by: java.lang.NoClassDefFoundError: me/clip/chatreaction/events/ReactionWinEvent
23.07 03:58:22 [Server] INFO at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:?]
23.07 03:58:22 [Server] INFO at java.lang.Class.privateGetDeclaredMethods(Class.java:3334) ~[?:?]
23.07 03:58:22 [Server] INFO at java.lang.Class.getDeclaredMethods(Class.java:2446) ~[?:?]
23.07 03:58:22 [Server] INFO at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$6(LocalExpansionManager.java:367) ~[?:?]
23.07 03:58:22 [Server] INFO at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1764) ~[?:?]``` I am now getting this...
what expansions do you have?
and do you have the ChatReaction (https://www.spigotmc.org/resources/3748) plugin?
I cant send pictures, ill dm you
You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
nvm
you can use /papi dump if you want, it lists the expansions and its info
I dont
huh
i think that one of the expansions is looking for the chatreaction plugin (which is why i asked for expansion list)
the error doesn't really tell me though ๐
yes
@random rock try removing half of the expansions, seeing if this happens, if it keeps happening then repeat, if not, then add half back, etc
to try locating the expansion
okay
first try removing all of them though, to make sure it's an expansion issue
uh
u can just make another folder in the PlaceholderAPI plugins folder
(and restart server)
ok
waaait
@random rock actually i think u might be able to just do /papi reload instead of restarting server
The only one it has failed to unregister is Vulcan, the others unregistered
hey, looking into what I need to do here, i'm testing a 1.17.1 build for my server and have (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: 15822af on HEAD) and PAPI v2.10.10
I'm getting this error in console and most plugins that use these expansions are throwing this error: https://pastebin.com/ksLBjwLs
some plugins will still show accurate placeholders regardless of the NoSuchFieldException error, but others like Featherboard are not parsing the placeholder at all, just delivering the raw text instead. Do I need to do something special with the expansions themselves? if so, where can I find them? thanks in advance c:
Turns out it was actually chatreaction screwing it

you said-
i got it fixed somehow , as i said i use papi 2.10.10 so i downgraded to 2.10.9 (thks to Barry ๐ ) and it worked
okay
is there a more up to date then this one
some other vault placeholders do work so maybe im doing something wrong
i tried:
/holo create test %vault_eco_top_player_#1%
and
/holo create test %vault_eco_top_player_1%
Is there any workaround for PAPI placeholders on Bungee? Venture chat doesnt have join messages.
deluxejoin
or even essentialsx
I will look into it, thank you very much
the time without plugin
u mean time expansion
yb
try redownload it from ecloud
how
nothing command to download time expansion
?
this 1
no download commands
playertime expansion requires the playertime plugin. just use the Statistic expansion. it allows you to see playtime for players without an entire plugin required
you could try HolographicPlaceholders. but anyways the vault top placeholders don't work for other reasons. they were removed or at least disabled by default because they can cause a lot of lag. I think they were added inside the essentials expansion.
you can still get them on the Vault expansion by downloading the version 1.5.2 and enabling them in plugins/PlaceholderAPI/config.yml
Redacted due to wrong channel
i belive this go to development channel #development
Apologies, thank you however.
hey, I'm using a plugin that uses html style animations, I was wondering if it was possible to pass in papi placeholders in any way? Or if not if someone perhaps knew of how this format worked? I do have skript and can make my own placeholders so if i need to reformat a hex code in some capacity I can do so easily "<wave colors=#00B9AE,#037171,#03312E>&lKairyu's Kingdom!</wave>" Here's an example of the animation, I would like to be able to use placeholders for the colours
I'm afraid that's up to the plugin developer to add support for. PlaceholderAPI Only works in plugins that support it.
yeah I'm afraid there is no real way to do this in the progress bar. maybe @junior musk can help you out set this up using his NestedPlaceholders expansion.
or you could set it up with some simple javascript I guess xD
bcz I'm not sure how the nested placeholders expansion works
I can give you the code. should be 2 lines or something like that
so you want to round up? or how do you want the rounding to work?
ok so round up is fine for you? like I Could just remove the decimal
if you want
so for example both 5.1 and 5.8 will become 5
parseFloat("%jobsr_user_jexp_rounded_Racฤjs%").toFixed(0)```
this would be the code for that
btw
and to set the placeholder up you have to follow these steps:
/papi ecloud download javascript then /papi reload
oh wait parseInt parses floats as well? I actually don't think I knew that
oh it does print
tho
so I guess that works
but he wants it rounded up Kaliber so guess I do need it as a float
anyways
steps:
execute the commands I gave above
go to plugins/Placeholderapi/javascript_placeholders.yml
and add:
roundup:
file: roundup.js```
then do a /papi reload
then go to plugins/PLaceholderapi/javascript and you should find a file called roundup.js
Math.ceil(parseFloat("%jobsr_user_jexp_rounded_Racฤjs%")).toFixed)(0)```
add this to that file
and save it
then do a /papi reload again
and now just use %javascript_roundup% instead of the %math...%
part
or actually you might need to use {} instead of %%
in this case
oh wait
Math.ceil(parseFloat("%jobsr_user_jexp_rounded_Racฤjs%"))``` just this
will work
or at least should xD
oh guess the to fixed is needed then. wasn't 100% sure. js Math.ceil(parseFloat("%jobsr_user_jexp_rounded_Racฤjs%")).toFixed(0)
How can I format numbers like
10,000 --> 10k
100,000 --> 100k
1,000,000 --> 1mil
etc
I've already tried using the formatter placeholder and it only adds a comma like 10,000 | 100,000,000 | 1,000,000 | I've also tried using math but I'm either not doing it right or its just breaking the plugin
I tried doing %formatter_number_format_{statistic_mine_blocks:cobblestone}% and it ends up just adding commas.
ik there is a way to do it but I'm not quite sure actually how
how can show the date in scoreboard
can someone help me, with javascritp
i need help, papi doesnt work and im not sure what to do with this
java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: me/blackvein/quests/Quest
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314) ~[?:?]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1766) ~[?:?]
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1756) ~[?:?]
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:295) ~[?:?]
at java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1016) ~[?:?]
at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1665) ~[?:?]
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1598) ~[?:?]
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183) ~[?:?]
Caused by: java.lang.NoClassDefFoundError: me/blackvein/quests/Quest```
You're trying to load the Quests PAPI expansion but don't have Quests plugin installed.
%server_time_dd/MM/yy HH:mm%
sure. what seems to be the problem?
Does anyone know a placeholder that shows how many blocks the player has placed? Apart from Statz, it doesn't work for me.
This error occurs when there is a mismatch in versions between the expansion and luckperms itself,
Make sure you have the very latest LuckPerms and the latest LuckPerms Expansion
Once installed restart your server.
it worked, thanks bot.
Is there a placeholder for the name of the server in the BungeeCord proxy?
Like the name of the current server
Maybe %bungee_<servername>% is the solution
Or %player_server% to detect player's server
Required Expansion: /papi ecloud download Player Hope that helped you ๐
i set my NPC to execute this command lpb user %player% permission set smoothtimber.use true and it gives this error when i try to right click my NPC
24.07 18:21:10 [Server] WARN Could not apply PlaceholderAPI placeholders. Disable 'AsyncPlaceholders' and try again
24.07 18:21:10 [Server] INFO java.lang.NullPointerException: null
@warm topaz @mint fable help ;-;
Please respect the rules, be patient and don't ping staff members!
but the #rules just says be patient, it does not say dont ping, well i guess one could argue that ping violates that mmmmmmmmmmm
- Don't @mention staff unless they are actively in a conversation with you.
yes it does
Have you considered disabling AsyncPlaceholders like it suggests?
:0 ooof i am blind
i dont know what AsyncPlaceholders is or how to disable it?
can you instruct me on how to disable it ;-;
I am having an issue with %player_exp% where it returns the incorrect value.
I have 30 levels (1395 points), but it is returning 0.0
If I give myself to the highest possible level, it's returning 0.3850485
Any idea what could be causing this issue?
do u need a custom javascript exp ? i have what u need
Not overly, mainly just trying to get the built in system to function properly.
ahh I see.
to get the real value u have to make a placeholder to calculate it
here is the 1 i made
That makes sense
No clue
ok
first create a .js file in plugin>placeholderapi>javascripts
and copy the file i send to that .js file
then open the javascripts_placeholder.yml in PlaceholderAPI folder
for example i will name the .js file we create earlier exp_value.js
Thank you!
in the javascripts_placeholder.yml add this:
expvalue:
file: exp_value.js
engine: nashorn
Notice: expvalue is the placeholder name, this is customizable, in game u will parse %javascript_expvalue%
the file name much match the name of the .js file u create earlier
also can you tell me how to disable AsyncPlaceholders? cuz of this #placeholder-api message
i already saw that
oh you dont know how to disable it either?
no i mean placeholderapi dont have that option
ok
can u send the plugin list of ur server
No idea.
Thank you very much Baole! Got it working.
np
i dont understand my error, i dont have anything called AsyncPlaceholders but its telling me to disable it? does anyone in the support team or admins know how to fix it??
send us the plugin list and btw what perm plugin is that i dont remember luckperm command is /lpb
my server run fine with luckperm
maybe try migrate to it ?
our server is a 1.17.1 survival server, it uses luckperms, lpb is luck perms bungee command
