#placeholder-api
150650 messages · Page 112 of 151
simply the placeholderAPI of essentials and vault does not work in 1.20.1
yes
thanks ❤️
guy practically ruined it with /nick and now there is another placeholderAPI that has a way for players to change their nickname and appear in the tab
what?
when i use /nick &4&lName it would show on the tab the color of my nickname i could customize
?
with essentials now removed from the tab, is there another palceholderAPI that pulls from essentials?
from the link I sent
NEZ wouldn't have removed the placeholders if there wasn't an alternative
I didn't find this alternative
uh?
I just sent a screenshot of the changelogs I linked earlier
/papi parse me %essentials_nickname%
/tab debug
already solved thanks just have to see about this afk that now he broke me
oh
should have said so
just replace %afk% by %essentials_afk% in your placeholder-output-replacements in config.yml
but the old afk he was invisible and when I type /afk he appeared in the tab this essentials he gets the message " no and yes ".
just replace %afk% by %essentials_afk% in your placeholder-output-replacements in config.yml
placeholder-output-replacements is placeholderAPI?
TAB's config.yml
thank you very much you helped me a lot ❤️
yeah, even though I shouldn't
I'm supposed to only help people who bought the plugin but I help everyone 🥲
fyi see pinned
yeah I mentioned it
looks fine
will do
done, if you want to unpin it
only think that is a little off to me is CheckMoney
I don't really see the need for it
@stone edge all others are verified
I get it's specific for money, but changeoutput is pretty similar and provides other benefits as well
I dont think we have tested other than 1.20 🥲
it's checking versions for the field name, so it should work fine imo
hopefully 1.20.1 didn't change the ping field again
but I would never put it past them
don't think it did
we would have had complaints about it not working in TAB on 1.20.1 🥲
1.20.1 ??
👍
yep lol
wth already?
yeah
it was day 2
3 days after iirc
💀
yeah 2 or 3
anything new?
real fast
at least on the api
It makes it easy for people to show if something is purchasable or not
because of a Realms button icon being glitched LOL
lol
changeoutput very similar only thing
little harder syntax
%changeoutput_>=_input:{vault_eco_balance}_matcher:10_ifmatch:Yes_else:No%
but very similar
and has things more than just >=
When 1.20.1 update fixing errors?
When people ask proper questions?
but people don't usually understand that 😢 (at least in spanish help servers)
it also has the vault eco built-in 👀
Player expansion was just updated, should be available for download in-game
it was for me
/papi ecloud refresh
/papi ecloud download player - should be v.2.0.5
/papi reload
okay
just checked, it is still f
nice
you get 0?
I'm ahead of the server!

wont let me parse ping anymore
make sure you use the latest version of the expansion
what expansion is that joint
player
the first part of a placeholder is the identifier aka the name of the expansion
i just did /papi ecloud refresh
now when i do /papi ecloud download player
failed to find
only playerlist,stats,time
are available
bro dont abandon me
@covert yarrow download it manually
o bet
did you find it @covert yarrow ? I know the bot disappears after a while
Ecloud downloaded something called PAPI-Expansion-Player_scjTuQq.jar
am i infected now
what is that
lol
no
it should be available in-game tbh, but i guess how certain servers work maybe not yet
how much did gian pay u
idk how the internet works
okok bet ill just download and put manually
we shall see on reboot
papi reload hasnt worked in years for me
so
reboot it is
facts
don't give away your money
do you get an error?
griefpreventions placeholders wont register after papi reload
is the problem
idk ill just yolo and try lets see
every placeholder on the server broke
also if you have Animabossbar (or a select other few) they override the player expansion for some reason
i dont have dat either
causing some placeholders not to work right
idk what skungee is
seems you're in the boat with the unknown
f
noooo no f
use papi 2.11.2
Are you saying this happened after you installed the player expansion?
nono its always broken all CURRENT placeholders
ok just making sure
i cannot reload only reboot server
but i just rebooted
its all working now
including PLAYER
nice
ty
think gaby said use 2.11.2 to avoid the reload issue maybe?
yeah
I will try to fix this for the next update, I just need to finish my exams first
Do you know if PlaceholderAPI is already available for version 1.20?
it works fine so far
@stone edge https://github.com/AlonsoAliaga/TempData-Expansion/blob/a70fd639ea125a6e22548722ac123e53020561ab/src/main/java/com/alonsoaliaga/tempdataexpansion/TempDataExpansion.java#L57 there's Enums#getIfPresent and it returns an Optional and you can then use orElse(TimeUnit.MINUTES) btw
Hey so my
/papi ecloud update all doesn't seem to work theirs no errors in console however when I run /papi ecloud update player I get the following error
17.06 00:53:34 [Server] WARN [PlaceholderAPI] Cannot load expansion player due to an unknown issue.```
I also have this issue for mcmmo
Are you able to /papi dump
how do i fix when ever i restart my server and try use any type of %player_xxxxx% placeholder it always comes back as the players name, but when i reload papi it fixes its self
can you send that over @faint veldt 
?paste
most likely what is happening is that you have some weird plugin that, for some reason, has created their own player expansion inside of their plugi
instead of using their own identifier, or just having the users use the player expansion
[04:01:34] [Server thread/WARN]: [PlaceholderAPI] Failed to load expansion player. Identifier is already in use.
[04:01:34] [Server thread/WARN]: [PlaceholderAPI] Cannot load expansion player due to an unknown issue.
is this what you were saying?
Leaked plugins... any last words?
i guess not
whats the placeholder for player kills?
How did you understand it
hey, quick question, does it work for 1.20?
yes
ty
hello is placeholder api plugin updated for 1.20 ?
latest version should work report any bugs you find and they should be resolved quick
okay sir
np
sir i need the download link actually
its still 1.19 on spigot
hello, can't seem to find the placeholder that tells the real-life time and date of the server. I saw it was the "server" addon in one place, another called it "server time" but either way nothing starting with "server" is in /papi ecloud download
okay sir
oh my bad, bad typing lol
do you know the placeholder itself
yeah, i found it
kk
thank you 🙂
whats it called?
oh it's called servertime
i was mistyping the commands lol
but it's nice to be able to have a clock when fullscreen now. no more lifting my hands to look at my phone 😅
how to make "top mob kills"?
For example
%statistic_mob_kills_top_1%
%statistic_mob_kills_top_2%
%statistic_mob_kills_top_3%
probably with https://www.spigotmc.org/resources/ajleaderboards.85548/
Hey, just realized that 1.17 added a getPing method in the Player class, it could be better to use that in the Player Expansion in case another version changes the ping field, so you use reflection as usual for 1.16- (the field is just "ping" I think) and on 1.17+ you use the method
It would prevent the placeholder to break on new MC versions, again 😅
interesting
Really the staff member pinged me -.- xD
Hey so my
/papi ecloud update all doesn't seem to work theirs no errors in console however when I run /papi ecloud update player I get the following error
17.06 00:53:34 [Server] WARN [PlaceholderAPI] Cannot load expansion player due to an unknown issue.```
I also have this issue for mcmmo
https://paste.helpch.at/mohafijihi
can you provide that? 
?paste
pleaceholderapi for 1.20?
you have 2 player expansions, sorry @marble gyro
delete them both and get a new one
either in-game or manually
works pretty good so far, #1-20
can you look at line 1360. Theirs a PlaceholderAPI mcmmo issue
I gotta head to work, sorry
17.06 20:41:18 [Server] ERROR [PlaceholderAPI] Failed to load expansion Expansion-quests.jar (is a dependency missing?)
Anyone know a fix for this
Does anyone know why placeholder api cant register any hooks? No errors appeared
i feel quests has been broken for a while, are you using it?
if not, just delete it
same thing it seems, you have mcmmo and mcmmoplus expansions
I deleted quests expansion.
However for McMMO I need both mcmmo and mcmmoplus. For some reason the placeholders do not work unless I have both expansions
hmm
where did you get mcmmoplus @marble gyro ?
oh wait that's mmoplus
not mcmmo plus
hmm, can you send an updated log?
?startuplog
?paste
you must have something else loading it tho
Please tell me its not something as stupid as I've accidently renamed the expansion lol
hmmmmmmmm
do you have 2 of them?
2 expansions?
yes
you have something that is registering as the mcmmo expansion v1.0
the one from the ecloud is 1.0.2
i've seen this before with plugins using the player identifier and breaking the player expansion
but not mcmmo
oh i see, the 1.0 is just wrongly named
the author messed up
I've just renamed the mcmmoplus to mmoplus 🤣
renaming will not matter
Oh how do I fix it then?
maybe clear your expansion folder and redownload them
All expansions or just mcmmo and plus?
I would say all
javascript will have to be manually downloaded but i think all the other ones are available via /papi ecloud download <expansion>
I would put mmoplus to the side
because I don't know where it comes from to download a new copy
Tbh I'm not even using javascript. I just grab it so it would remove a WARN that it was missing 😅🤣
I can't remember it was last week
well you might get it again
Any chance you'd have an idea on another slight issue.
I keep getting /papi ecloud update quests.
Quests plugin doesn't have any expansions
It's not a massive issue like
https://paste.helpch.at/ejicibemih.makefile
I havent add mmoplus back in yet but error is persistent
quests plugin does have an expansion
do you need the placeholders?
it should only say /papi ecloud update quests if you have it and it's outdated
just checked the latest is 1.6
I have the plugin but not the expansion. I will do a download for it now and see if that removes it from appearing on the update list
hmm, it seems to have an expansion included
you're using 3.13.3 of quests?
latest is 4.8.2

It's showing as 3.13.3 on spigotmc
Did you delete the quests expansion?
Yeah I havent had the expansion for atleast 4 hours now and everything seems fine
okay, I'm thinking it tells you to update because you have a plugin using the quests name
and the version is just not the "latest" one on the ecloud
so you can't really fix the message
but no problems with it
I just downloaded a fresh copy of mcmmo to see if that fixes that warn
These warns arent really causing any issues. Just annoying to have them
okay so
the mcmmo "expansion" is actually a full plugin
put it in your plugins folder
instead of expansions
if it works, i will unverify the expansion
because that's... not right
i'm already gonna do it tbh, version mismatches
I'm just restarting the server after making the changes
See if it's okay
All fixed 
nice
No warning from placeholderapi and mcmmo loaded correctly
we will contact mcmmo and see if they want to get that fixed in future
see what's up, the one on the ecloud now is... odd
mcMMO is still appearing on the ecloud update
ya, same thing
well, similar
it shoul disappear actually since i unverified it
maybe /papi ecloud refresh
might take time
I know the expansion for mcmmo covers some of the placeholders in the GUI and mmoplus cover the other half
is mmoplus for mcmmo?
I think I just did /papi ecloud download mmoplus
If not I must have grabbed it from google somewhere
says %mcmmo_level_mining%
/papi dump
I removed the 2 expansions to grab the screenshot
Ah sorry no problem now. I was just showing that the Expansion-mcmmo and mmoplus were both being used for the plugin
its for mcmmo
I purchased a config as mcmmo didnt come with a GUI interface
ohh that's prob it
oh i see how it works
it just returns a yes/no checkmark/X if you have or don't have the level
right rght
simple placeholders just for the gui
Yeah thats right
makes sense
According to expansion usage its on 216 servers while mcmmo is on 1067
Yet I dont remember how I found it lmao
def from the prefab menu
Hi! I was wondering what is more recommended? Just adding the expansion in my plugin or adding it in ecloud?
if it's your own plugin, then adding it within it is recommended yes
(don't forget to override the persist method as well so it stays on /papi reload)
- any placeholder that returns if player has blocks above or not? Like if there is a block "between" player and sky
- any placeholder that returns player current weather? like if its raining where player is?
couldn't find anything in the wiki
I don't think the first one exists but I believe the second one does
I found %player_weather_duration%
it should work
This JS placeholder should work
function canSeeSky() {
var p = BukkitPlayer
var block = p.getWorld().getHighestBlockAt(p.getLocation())
return block.getLocation().getY() < p.getLocation().getY()
}
canSeeSky()
I didn't see any other placeholder for that
that's why I gave you the JS placeholder
too lazy to make an expansion just for that rn
I'll make one later if you want
would be useful for people
player_weather (returns DOWNFALL, CLEAR or something)
player_gethighestblocky (returns -1 if no blocks found above or Y level if found)
player_isinrain (maybe, idk to save time instead of using both above xd)
would be nice, i've seen some people asking for that lately
no but actually the weather one is useful

Do these even make sense to be in the player expansion?
Isnt the weather per world? It can be added in the server expansion ig
maybe world expansion?
Wtf are these placeholders in the world expansion
But yeah, sounds good, I wasn't sure we have a world expansion
idk either, it has some random stuff
technically, its weather per player
but i mean that it can return directly from player location
without need to use worldname
and as long as i could see, no way to check if raining/snowing using world expansion either
oh didn't see that, I only saw the getWeatherDuration in World
would be a good help for users looking for a way to make the well-known acid rain
checking player hightest block and weather for player location
Hey! Currently I am using PlaceholderAPI as an API for my scoreboard. I added the support everything works fine, but the error cames when I want to load the scoreboard.
Error code:
java.lang.NoClassDefFoundError: me/clip/placeholderapi/PlaceholderAPI
at dev.mochilla.kobalt.features.ScoreboardManager.lambda$setScoreboard$0(ScoreboardManager.java:33) ~[Kobalt-1.0-SNAPSHOT.jar:?]
at java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104) ~[?:?]
at java.util.stream.IntPipeline$Head.forEach(IntPipeline.java:617) ~[?:?]
at dev.mochilla.kobalt.features.ScoreboardManager.setScoreboard(ScoreboardManager.java:31) ~[Kobalt-1.0-SNAPSHOT.jar:?]
at dev.mochilla.kobalt.listeners.GeneralListener.onJoin(GeneralListener.java:11) ~[Kobalt-1.0-SNAPSHOT.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor6.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[purpur-api-1.19.4-R0.1-SNAPSHOT.jar:?]
do you have the plugin installed?
Of course.
did you shade the api?
you probably didn't then, that should be good
well
to make sure
do you have <scope>provided<scope> under your PAPI dependency?
yes.
then it should be fine
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.3</version>
<scope>provided</scope>
</dependency>```
o_O
mh
I'm out of ideas, sorry =/
Oh okay.
can you maybe send your pom.xml ? maybe there could be something else, but I have no idea
Yeah, sure.
maybe someone else will figure it out
oh and forgot to ask but
can you open your Jar file with 7Zip or WinRar and check if you have PAPI's classes?
in case it did shade it for some reason
=/
But when I set the scope to compile then I get other errors, like NullPointerException
but then it can find the class
but it should work without compile.
yeah that's because it shades the api into the plugin
but if you don't shade, it should work
I don't understand ;-;
I don't think either since Kobalt did load after PAPI (and either way, the error is on join)
but try it anyways
Nope.
The issue was I used Paper in Intellij IDEA (there is some plugin for minecraft), not Bukkit so it doesn't load.
like paper-plugin.yml
and the platformType was PAPER as well.
but after I changed it to BUKKIT now it works, and also to plugin.yml.
I didn't think that would have been an issue o_O
but it was.
yeah, thanks a lot of btw.
I didn't do anything ;-;
In short, I have a question. What is the difference between these two placeholders? One with a colon, the other type of time. And which one is responsible for the real simulated time, and not the time in Minecraft?
https://imgur.com/a/3ukGSNa
time_played returns the time played formatted as #d #h #m #s and the ones with a colon gives you each value individually
E.g. if the first returns 1d 6h, :days will be 1 and :hours will be 6 iirc
Please speech more.
oops
Hm?
Ah the others above time_played will return the total time played as ticks, seconds, minutes, etc.
If you play 1h, seconds_played will be 3600, minutes_played 60 and ticks_played 3600*20 (720000?)
Ah, got it. That is, if I use the placeholder "%statistic_days_played%", everything else will be output to me along with seconds, minutes, and so on, but the first word will change, depending on the placeholder. And the one that will display separately with a colon, for example, the placeholder "%statistic_time_played:days%" will display only the value "1", without minutes, seconds, and so on.
And they both count real time, and accurate?
Hi !
Sorry but I don't understand...
I see [X] PlaceholderAPI [X] = Production-Ready Builds Available
But when I go on spigot PlaceHolderApi has not update to 1.20...
Can you explain me ?
Tested Minecraft Versions:
1.81.91.101.111.121.131.141.151.161.171.181.19
it should already work on 1.20
"should" or it's work fine ? 🥲
Because I don't understand what that means " [X] PlaceholderAPI [X] = Production-Ready Builds Available " ? 😅
Hmm
But on spigot it's not still 1.20 compatible 😦
it doesn't matter
it's just that the page hasn't been updated, but the plugin works fine
it doesn't have any version-dependant code
it's only the expansions that you use that may or may not break, for example, the Player expansion requires an updated because the ping placeholder broke
not all expansions will break, but some may
Mhhh okey thk
does the plugin work for 1.20?
check previous messages

Where do I find the pleaseholderapi for 1.20? @idle coral
sorry
it work s already for 1.20 ;-;
just make sure to also update the expansions

Hello, can you help me on how I can change this no or yes of the variable %essentialsx_afk%?
how i can change the server timezone? example for console
shows https://skr.sh/sKOslkdA2mC
||date on linux connection: Mon Jun 19 02:59:13 AM MSK 2023||
%player_ping%😋👍
Im trying to make it where my gui takes money and not coins
what should this be
click_requirement:
requirements:
check_balance:
type: '>='
input: '%vault_eco%'
output: '150000'
the input?
to take 150k?
pls ping me if u respond
Hi its an ETA for placeholder api in 1.20?
isnt working?
%vault_eco_balance%
What? PlaceholderAPI 2.11.3 support to run on 1.20?
what does the above message mean
it works on 1.20
same thing as above, it works
I read in the comments that it does not support 1.20 running
not no
Yes, I just ran it.
But is this 2.11.3 really fully compatible with 1.20?
alr ty
2.11.3
ok
lm, you may want to mark 1.20 on the spigot version
lm
how i can change the server timezone? example for console
shows https://skr.sh/sKOslkdA2mC
||date on linux connection: Mon Jun 19 02:59:13 AM MSK 2023||
Hello, I'm using craftbukkit 1.19.4 instead of paper or spigot due to their incompatibilities with vanilla farms and mechanics (despite numerous attempts to configure them, they don't behave like vanilla). I can't get the tps with placeholder %server_tps% or %server_tps_1_colored% to show up. Here is the console warning:
CraftBukkit is not supported.
I can´t drop image or file and text is too long
I didn't know, I thought so, it only gives me problems with tps. Maybe I'm trying to read some spigot api?
¯_(ツ)_/¯
(shortened version due to character limitations)
This is the only error shown:
||[WARNING] [PlaceholderAPI] Could not resolve TPS handling! [WARNING] java.lang.NoSuchFieldException: recentTps [WARNING] at java.base/java.lang.Class.getField(Class.java:2167) [WARNING] at com.extendedclip.papi.expansion.server.ServerUtils.resolveTPSHandler(ServerUtils.java:124) [WARNING] at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:77) [WARNING] at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:414)||
And also when calling protocol lib it gives error, could it be the same thing, the use of bukkit?
||[INFO] Error Cannot perform automatic updates. (java.lang.NullPointerException: Cannot invoke "com.comphenix.protocol.updater.Updater.isChecking()" because "this.updater" is null) occurred in ProtocolLib v5.0.0. [ERROR] [ProtocolLib] INTERNAL ERROR: Cannot perform automatic updates. minecraftVersion=(MC: 1.19.4) Java Version: 19.0.2 Server: 3763-Bukkit-5a5e43e (MC: 1.19.4)||
Thank you and sorry for the inconvenience.
I notice that the PAPI bug brings up version "v1_19_R3" but wouldn't it be in v1_19_R4? Maybe I have something out of date?
As I've said, craft bukkit is not supported.
ok, Thank you and sorry for the inconvenience. Have a good day!
Hello there, I do get this error:
https://paste.helpch.at/nadohewapi.rb
Hi,
I have a question...
I just downloaded "Bungee" expantion and the total number of players connected to the server takes about 30 seconds to refresh, is it possible to reduce this time?
Other question what is the real "stringexpansion" ?
This https://github.com/BlitzOffline/StringExpansion or the jar give by the plugin with /papi ecloud download String ?
they're the same, this is just the source code
and you can reduce the update time for the bungee expansion in your PAPI config
bungee:
check_interval: 30
This ?
yes
thk a lot
Hello everyone. I have a question.
/papi parse me %checkitem_getinfo:mainhand_nbtstrings:%
How to get more detailed nbt data from information obtained using ?
I want to get the value of the tag starting with [emf-fish-] or the value of the owner .
/papi parse me %checkitem_getinfo:mainhand_nbtstrings:evenmorefish=emf-fish-name%
This seems wrong.
thank you
Try to use .. instead of =
/papi parse me %checkitem_getinfo:mainhand_nbtstrings:evenmorefish.emf-fish-name%
evenmorefish.emf-fish-name
is this right? Still showing full nbt..
Two dots
nbtstrings:<string>=<string>;<string>=<string>
nbtints:<string>=<integer>;<string>=<integer>
For nbt data you can use compounds by putting .. inside your string Example %checkitem_nbtstrings:PublicBukkitValues..executableitems:ei-id=Free_Money%
From the wiki
After several experiments, I finally got the results I wanted. Thank you for your help. The normal command is:
/papi parse me %checkitem_getinfo:mainhand_nbtstrings:evenmorefish..emf-fish-name=string%
i need some help
im trying to configure the "playerlist" extension
however
it tells me i have to make an entry in the config
and theres no config or config.yml in the placeholder api folder
so idk where im supposed to config
there should be a config.yml in your placeholderapi folder
the problem is there isnt
like
is papi even loading?
send that over 
papi is indeed loading, i can run and download ecloud expansions and stuff or reload
let me find he logs thingy
i cant access the logs folder right now, maybe because i am using aternos or the server is online rn, however i can post a papi dump https://paste.helpch.at/janejujaru
are you 100% sure there is no config.yml file?
do your other plugins have config files?
Where did you get your papi from?
I see it's 2.11.4-dev-null
just very odd to have a plugin not generate the config
seems like it could be a permission issue, but you never know
all other plugins have config.yml files with no issue and i never had any issues with them, this seems to be a papi fault
in the PlaceholderAPI/ folder, theres just another "expansions" folder containing the jar of the expansion i downloaded, but no config to be seen anywhere
also the jar is named papi-2.11.3.jar
can you download the latest papi dev from here https://ci.extendedclip.com/job/PlaceholderAPI/
i unfortunately cannot download custom jars with the hosting im using, however the hosting seems to source the papi from spigotmc.org, i downloaded the 2.11.3 jar
if i can access the logs or find any new updates about the situation ill let u know asap
That dev version is not available on spigot, so idk where you got it from
host doing some weird shit ||maybe||
Is there a way to prevent checkitem give placehlolder from being parsed in normal commands?
not without disabling it entirely
disabling giving/removing*
I guess it is weird when arguments get parsed as placeholders
but sadly no way to pick and choose where you can use the specific placeholder
@plush dove
hopefully the players don't think of that 😂
kind of breaks all deluxemenus checkitem shops that use arguments because the player could just type /shopbuy %checkitem_give_mat:diamond,amt:64% and it'll probably be parsed at least once even if the menu doesn't open
thinking maybe a plugin that can disable %% input from any player-run commands
I'm trying to do that right now, but the placeholder gets parsed before I can get the args
in deluxemenus or coding a plugin?
like if I was to parse %checkitem_give_mat:bedrock,amt:2304% it would out 2304 in the args
so I can't exactly check
does that allow you to cancel events
but ee is parsing it?
canceling the event still gave it to me
I'm thinking you might need to have something custom coded
kk
but should be doable
thanks
yeah we just got hit by this shit
make that shit off by default or you are ruining so many servers
i dont see how this is on by default
i dont know who is in charge of CheckItem but I refuse to accept that giving items in a placeholder should be turned on by default
My friend got hit by it
Well imma go upload some game breaking expansion because it’s not papis fault or issue if they’re hosting it
Cringe logic
nobody forces you to download checkitem expansion
you have to do that yourself
placeholders being parsed from commands does end up causing issues, like if you use a deluxemenus command with an argument it will end up parsing it
now, even if I do set the option to false by default, it will not fix any servers you currently have it on
but can be done
@plush dove Do you recommend give and remove both off by default?
or just give
I'd recommend to have them off. People normally install checkitem to check items, not give or remove. Most people would not be aware of the fact that this would allow normal people to do this, and they don't look any further. If they needed it, they would do extra research, figure out the consequences, and enable it if they really needed it and they now know what might happen.
absolutely not an issue
All information is on the ecloud, this is not the correct way to go about getting an issue fixed. 🙂
Updated my message
I think it's easier on your end to make it disabled by default rather than have to deal with people who get hit by it and didn't fully understand that regular players can parse any placeholder
Yep, updated on ecloud
I think there are 1 or 2 other expansions that run things when parsed, but not sure which ones
bump?
😔
I am having an issue where my %player_name% isnt working properly in certain instances, I have this issue with the plugins: TAB and AJLeaderboards, on the leaderboard holograms, if a user is on one and sees it through their account it just says You, I have this same issue for the name plates above players heads, when they press f5 to view their own name plate it says You with their rank placeholders, but then when I parse %player_name% it parses my username properly
I have tried redownloading it through ecloud
you most likely have some random plugin that is overriding the player expansion
improper usage
@halcyon frost Did you open the checkitem issue?
Do I need to delete / re-download the Advancement placeholder for it to show the proper # with the new 1.20 advancements? Or has it just not been updated yet?
@bronze bison I'm having some issues with the LocalTime expansion, every player seems to fail to get the timezone.
But Barry, it's their expansion! I need their help :(
Going to the API url shows the correct timezone for myself (America/New_York), but doesn't work in game.
Please ping me if you reply :)
how i can change the server timezone? example for console
shows https://skr.sh/sKOslkdA2mC
date cmd on ssh connection: Mon Jun 19 17:41:05 PM MSK 2023
Try to add this startup flag -Duser.timezone with a value from this list https://garygregory.wordpress.com/2013/06/18/what-are-the-java-timezone-ids/
any help?
Try this jar @austere hawk https://cdn.discordapp.com/attachments/920613796970655765/1118658607173607454/Expansion-Bungee.jar
thx I will try it 🙂
Any ideas?
is there a minimessage converter for placeholderapi?
Hmm?
Papi means daddy in spanish or smth like that and clip made that as a joke
java.lang.IllegalArgumentException: Attempt to get net.minecraft.server.level.PlayerInteractManager field "net.minecraft.server.level.EntityPlayer.e" with illegal data type conversion to int
1.20.1 error
spam my console
redownload the player expansion
哟西!
Thank you very much
you are probably talking about the statistic placeholders, the data is got from the world file @onyx moss
does anyone know if i would run into performance issues if i was checking luckperms meta every tick with %luckperms_meta_<key>% Im making a very stat driven pvp/pve server and i want to know if it will lag before I configure all of this.
actually, its prob gonna be more like 50 parses per tick if I use a lot of stats and modifiers. so will that lag my server or nah?
mostly on edbe event
try to look into a more direct way to check the meta, with the luckperms api
after researching some, it looks like if im going the coding route i mine as well use PersistentDataContainers
Is there a placeholder that displays a given message depending on the rank?
is there any placeholder that show where you are in the world like coords?
%player_x%
%player_y%
%player_z%
yea i got it^^
no, but you can do that with javascript
yoo
any reason why PLAYERS ONLINE: &r(%bungee_<servername>%/100)
the player cont dosen't update?
%player_ping% & %afk% in not working
wheres the download for 1.20?
%bungee_servername% or use %bungee_online% to show the players online in the server you’re connected
bungee_total shows all players from the network
download BungeeCord extension as well if you dont have it downloaded already
Hi 👋
Can someone verify my Purpur expansion please? 🙃
https://api.extendedclip.com/expansions/purpur/
Is it possible to do something like the nth root of a value using the math expansion?
do you mean like 4th √625 = 5 ? Looks like you need x^(1/n) where x is the number under the sqrt and n is the nth root you want to calculate
=> 625^(1/4) = 5
Hey, what can I do there?
https://paste.helpch.at/vigitugifo.rb
Ah thank you very much!
Oops
How do I make it so that something like this %math_2.5*(1000000^(1/4))% will return a number without decimal places. I did %math_0:_2.5*(1000000^(1/4))% but it returns 3 instead of 79
what's your Math expansion version? (/papi info math)
There was an issue in 2.0.0/1 but it seem to have been fixed in 2.0.2 (just checked), so try to redownload it
2.0.2
o_O
bruh
update the player expansion
where can i download it?
tnx
this says theres a 1.20 build of papi available, any ideas where i could find it?
#1-20 message
perfect, thanks
yup
Will this support premium vanish when I have turn it on ?
i have no clue, test it
I change the placeholder to %bungee_count% and there is 0 players but there are 2
%bungee_servername%
Quick question. Is there a reason why Player-extension does parse %player% and only %player_name%. Somehow it stopped working when updating to 1.19.4. I know i can just use the new placeholder but that will break some of the items (MMOItems saves command in NBT tags) ?
all of my papi dependent plugins just completely died with the 1.20 build, is there something I need to do to activate it or update properly?
bump
I'm not using any extensions though
other than Expansion-player.jar but that's just default right?
No expansion is "default".
There's expansions made by us and by other people, and player is one of those that need to be updated.
oh!
so that's PAPI-Expansion-Player.jar right?
even though the old one was just Expansion-Player.jar?
The name of the jar doesnt matter
alr
I think the plugin changes it on download
hmm
I updated the expansions and I'm still having issues
can I DM you a picture of the issue?
No, errors are sent via a paste
there is no error message, it just isn't registering some placeholders
I mean, I could send logs anyways but it'd be really boring
What placeholders are not registered?
I'm using mmoitems and all the stats are just # symbol
Hm?
If I recall correctly, mmoitems uses placeholder api for displaying lore and stats, but it isn't displaying properly
also, tablist has %afk% next to everyone's name
hmm
Does PlaceholderAPI need to be on the Proxy Server of an Bungeecord Network? or on the server behind the Proxy or both?
Behind server.
always read the changelog 😉
furthermore, placeholderapi is not a proxy plugin at all
smh
I was posting the same link
Anyway
They added placeholders back on 4.0.2
vault ones*
Bungee placeholders doesn't support vanish
There is no time to wait! Ask your question @sacred wasp!
How i can do a progress bar of player list?
Like a variable
Like: If its 10 persons ■
If its 20 personas ■■
Like that
left_click_requirement:
expression: '%vault_eco_balance% > 45000'
expression: '%VotingPlugin_alltimetotal% > 80'
Did I write this correctly? I dont think so because I can still purchasea the item without have the right amount of server votes
alonsolevels has a placeholder for that I believe
But with players?
I think I remember he did but it might have been for his premium version, it was a long time ago but if my memories not wrong it was alonsolevels premium
yes placeholder api but the placeholder is alonsolevels
its been awhile but idk I could be wrong
No, i cant do it with alonsolevels
is there a way of making like a placeholder track? for example i have protectionstones and worldguard placeholders i would want to display on scoreboard, but i would want to make it so only one displays, and if theres none the other one displays.
Hey, I just updated from 1.19.2 to 1.20.1 and it seems like I get errors with player_ping from papi, is there a specific build I should update to or what could cause this?
https://pastebin.com/274Pe2nM
Make sure your expansions are up to date
Updated them alrdy via papi ecloud update all, still occurs
Is there a specific dev version I should use or smth?
Run /papi dump for us and provide the link it generates so we can take a better look
The expansion is definitely not updated
What?
Do you want to display the name of the region or protection at player's location?
Basically: display placeholder 1, if there is no info to display, display placeholder 2
Something like that
Sorry for delay, https://paste.helpch.at/evuhelawaf
bruh i have to move from nested to utils now ;-; ?
btw is there any plugin(besides changeoutput) that i can use to change a format that is 5m 10s to 5 only?
any idea how i can fix this
%utils_math_{changeoutput_contains_input:{{luckperms_expiry_time_test}}_matcher:5m_ifmatch:5_else:}*100% cause it doesnt return an error or smth :/ ?
what i wanna do is format the %luckperms_expiry_time_test% from 5minutes to 5 and then multiply it by 100 idk why it can be done with math only cause i didnt rly get it to work only with it either so i gave a chance to utils :/ and btw the %changeoutput_contains_input:{luckperms_expiry_time_test}_matcher:5m_ifmatch:5_else:% works fine on its own when it matches the 5m
Is there a person who fully knows the DeluxMenu plugin and can help with it? Send me a pm who can help!
%utils_math_{changeoutput_contains_input:{luckperms_expiry_time_test}_matcher:5m_ifmatch:5_else:}*100% (you had an extra {} around the LP placeholder)
else is empty though, is that normal?
you can ask in #general-plugins or #1007620980627230730 after explaining further your question, otherwise no one will be able to help you
you're returning an empty value in a math placeholder?
that's gonna throw an error
use 0 in the else if you want to return 0
well i m not turning it when it's empty :/
eh?
eh nvm lemme try that too :/
I'm not even sure what you're trying to do
Does anyone know if the plugin "CombatTagPlus" has any placeholders?
Yo, is there like a vault or luckperms group color placeholder I can use? That only parses the color of the player group
idk this doesnt seem to work :/
it returns the whole placeholder
well the expiry time is returned in 5m 10s format and i wanna change the output when its 5 to just 5
so i can then multiply it with 100
the %changeoutput_contains_input:{luckperms_expiry_time_test}_matcher:5m_ifmatch:5_else:% itself returns 5 so idk what the issue can be with the rest of the placeholders :/
oops forget to remove the tag on this reply :/
uh
have fun
I'd use JS instead of changeoutput
var placeholder = "%placeholder%"
if (time.contains("m"))
return time.substring(0,time.indexOf("m"))
return 0
please help error
[13:58:32 ERROR]: [PlaceholderAPI] Failed to load class files of expansion.
java.util.concurrent.CompletionException: java.lang.UnsupportedClassVersionError: com/ezylang/evalex/EvaluationException has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[?:1.8.0_372]
at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[?:1.8.0_372]
at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1606) ~[?:1.8.0_372]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_372]
Caused by: java.lang.UnsupportedClassVersionError: com/ezylang/evalex/EvaluationException has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_372]
at java.lang.ClassLoader.defineClass(ClassLoader.java:756) ~[?:1.8.0_372]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_372]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:473) ~[?:1.8.0_372]
at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[?:1.8.0_372]
at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[?:1.8.0_372]
at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[?:1.8.0_372]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_372]
at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[?:1.8.0_372]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[?:1.8.0_372]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_372]
at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:62) ~[?:?]
at
PlaceholderAPI for java 8?
Papi works with java 8, but not the math expansion
Hi imagine i have an item with multiple slots is there a way to pass the slot to the material placeholder?
[15:11:57] [Server thread/WARN]: Could not pass incoming plugin message to PlaceholderAPI v2.11.3
java.lang.IllegalStateException: java.io.EOFException
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:449) ~[patched_1.8.8.jar:git-PaperSpigot-445]
at com.extendedclip.papi.bungeeexpansion.BungeeExpansion.onPluginMessageReceived(BungeeExpansion.java:123) ~[?:?]
at org.bukkit.plugin.messaging.StandardMessenger.dispatchIncomingMessage(StandardMessenger.java:429) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:2154) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(SourceFile:55) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.PacketPlayInCustomPayload.a(SourceFile:8) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [patched_1.8.8.jar:git-PaperSpigot-445]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_312]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_312]
at net.minecraft.server.v1_8_R3.SystemUtils.a(SourceFile:44) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:774) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:378) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:713) [patched_1.8.8.jar:git-PaperSpigot-445]
at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:616) [patched_1.8.8.jar:git-PaperSpigot-445]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_312]
Caused by: java.io.EOFException
at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340) ~[?:1.8.0_312]
at java.io.DataInputStream.readUTF(DataInputStream.java:589) ~[?:1.8.0_312]
at java.io.DataInputStream.readUTF(DataInputStream.java:564) ~[?:1.8.0_312]
at com.google.common.io.ByteStreams$ByteArrayDataInputStream.readUTF(ByteStreams.java:447) ~[patched_1.8.8.jar:git-PaperSpigot-445]
... 14 more
fix
hlep
the error was caused by the math extension, I installed an old version and it was solved
is there a way to add placeholder to the commands?
like
commands:
- 'mycustomplaceholder'?
how do i fix this
maybe pinned messsages
Hi, what is the correct syntax to use placeholder CheckItem with another player? I need to check another player's item and not mine....
%checkitem_getinfo:<slot><modifier1>,<modifier2>,<...>%
But for another player. Like:
%another_player checkitem_getinfo:<slot><modifier1>%
MESSAGE:%changeoutput_equals_input:{victim checkitem_getinfo:38_mat:}_matcher:DIAMOND_CHESTPLATE_ifmatch:10_else:0%
this checks whether the victim (another player)
is wearing a diamond breastplate, if so return 10 otherwise return 0.
But the results are based on me and not the other player.
do the use_quick_js: true make the js work faster?
vault placeholders aren't working at all %vault_eco_balance_commas% for example
parseother expansion
ex: %parseother_{cj89898}_{checkitem_getinfo:38_mat:}%
I installed placeholderapi but it didn't work
Where I do %player_name% the player's name is not written
you need the expansion
@sonic heart
any expansion to convert numbers to numerals?
don't believe so
hi can i import a js o json file to a placeholde js file?
26.06 20:33:59 [Server] ERROR [PlaceholderAPI] Failed to load expansion Expansion-WorldGuard.jar (is a dependency missing?)
D:?
so, having issues with the placeholders for simple gems and deluxemenus what do i use for getting a players gems and checking if they have enough for what they want not sure if this is a them issue or a me issue can anyone help please
hello everyone (:
i'm having a problem, i use the TAB plugin and need to reset the death statistics, i believe i'm pulling the deaths from the placeholder, how can i reset them?
Hello, why is the %bungee_total% placeholder not working for me, for some reason it doesn't count all the players on the servers, we have a velocity
With a placeholder, is there a way to make it so if I input a word, it can remove a certain section of that word. For example putting in CHISELED_STONE_BRICKS gives me STONE_BRICKS, inputting CHISELED_DEEPSLATE gives me DEEPSLATE
Hello. How do I display the total online on all servers in a tab? The placeholders (bungee_total, bungee_all) work, but give me 0. Although there are many players... I use Velocity
"For example, I want the Deluxechat plugin to display the player's profile on the GUI screen, along with their kill count, death count, and server ranking. How can I accomplish this?"
redownload the player expansion
Thank you!
I was referred here by the EssentialsX team for my issue below,
%essentials_baltop_player_stripped_1% &b| &2$%essentials_baltop_balance_formatted_1%
Im using these placeholders to show top balances, and they have stopped updating the balance/top player. I have tried a reload and full restart so far
thank you <3
does anyone know why the names in the tab menu appear as %essentialnick%%afk%?
same issue with the player names above heads
nothing to do with papi, but tab removed those in 4.0.1 and added them back in 4.0.2 I believe @summer swift
the update should happen every time the /baltop command is run (the updating itself comes from essentials, the expansion does not update/refresh the balance leaderboard)
thank you
found solution above%player_ping% doesn`t work on 1.20 builds, is it bug or my mistake?
Hi, I have a question for using the placeholder api. can I use this and conditionally write "yes" or "no" in either green or red
yes, there are options in the papi config.yml to change the default boolean output
it may mess with any pre-existing setups relying on default values
right on, thank you!
Hi, I keep getting this error Cannot invoke "me.clip.placeholderapi.PlaceholderAPIPlugin.getLocalExpansionManager()" because the return value of "me.clip.placeholderapi.PlaceholderAPIPlugin.getInstance()" is null What do I need to provide so that someone can help me out?
@hearty orchid https://i.imgur.com/HTl1aoe.png
Can you take a look at your console and see if your plugin loads before or after papi
It starts after
28.06 15:17:03 [Server] [INFO] [PlaceholderAPI] Fetching available expansion information...```
but before
28.06 15:17:14 [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: betterrtp [3.6.10]
28.06 15:17:15 [Server] [INFO] [PlaceholderAPI] Placeholder expansion registration initializing...
28.06 15:17:16 [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: player [2.0.5]
28.06 15:17:16 [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: luckperms [5.4-R2]
28.06 15:17:16 [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: server [2.6.2]
28.06 15:17:16 [Server] [INFO] [PlaceholderAPI] Successfully registered expansion: essentials [1.5.2]
28.06 15:17:16 [Server] Startup4 placeholder hook(s) registered!
Any ideas?
provide entire error/log
can you provide the entire log
Yes, one minute please
is it possible with placeholders alone to have conditional output? (and i dont just mean changing the global boolean value)
changeoutput expansion
thank you! ❤️
could you maybe help with the syntax? what is <matcher> in %changeoutput_<options>_input:<input>_matcher:<matcher>_ifmatch:<output-if-matched>_else:<output-if-not-matched>%? so far i have this: %changeoutput_equals_input:yes_matcher:<matcher>
sorry. not meaning to ping anyone. just trying to keep the messages together
matcher is what ur matching the input against
so lets say u have an input of %player_name%
the matcher would be Kaliber
basically whatever the input equals
Is there any placeholder to do something like this?
foo:
bar: baz
test: %anyplaceholder_foo.bar%
config expansion
Error trying to add Config https://paste.helpch.at/vubecuqaxo.rb
?
😳 let me see if I still have the src
ok
@vivid sparrow I don't like tag, but any updates?
Without that I can't do anything...
looks like I don't have it 
is config expansion not on the papi org?
nah I've rewrite it but ig I forgot to push the code
in papi's config.yml do you have a config section?
it should be smth like
expansions:
config:
configs:
example: '/plugins/PlaceholderAPI/configs/example.yml'```
ok, then add this and try again
now don't crashed
great
and what are path and default? %config_[config]_[datatype]_[path]_(default)% I can't find any docs
I guess that config will be for example configs and datatype STRING
Available data types: STRING, BOOLEAN, INTEGER, DOUBLE, LONG.
config isexample, datatype is one of the above ^, path isfoo.baras you said in your original message, anddefaultis a fallback value in case the path is missing / has no value assigned
Ok thx for all Gaby
np I hope that makes sense
is there a placeholder to format colors using hex values?
Hi, why is my %bungee_total% placeholder not working? I'm using Velocity
Is possible interpolate variables of yaml (&name) in a string?
Like 'example string *name'
hm?
Example
foo: &foo 'bar'
buz: (value of foo and 'asd' concatenated)
I tried with + or using *foo inside string
but doesn't work idk if there is any way to do that
no
ok thx
i have a problem with that and is that my variable name is a material and is something like A_B and uses underscores and because of that tries to access the value of A not A_B I tried to replace _ with - with another placeholders but found the same error
Is there a rand for the Math expansion? I know that there is an RNG expansion to do this, but I can't seem to get it to work with decimals. I just need to generate a random number from 0-2 with 1 decimal place. Something like 0.3, 1.5, etc.
%math_RAND()% iirc
Would you be kind enough to give me an example, can't seem to get it to work
exactly as I sent it
Doesn't seem to work for me
maybe it was RANDOM() then
Ah yes it's RANDOM() thank you
👍
I suppose to make a min and max would just be %math_RANDOM(min, max)%
Yeah, but does it support min and max or not at the moment?
I've just said that it doesn't?
Well I just thought there was another way to do it
there is, I just need to remember how to do it xD
Oh xD
RANDOM() * (max - min) + min
Thank you very much!
Using a Material name inside a placeholder like: %config_prices_INTEGER_OAK_BLOCK_99% results in error because it has a underscore any suggestion to avoid that?
Can someone point me in a direction? https://paste.helpch.at/puzokuveya.php
can you send the entire log?
I figured it out sorry
Any update for the Advancement placeholders? I deleted/re-uploaded it but it's not taking into account the 1.20 advancements and now goes over 100% with %Advancements_completedAmount%
[04:18:00 INFO]: 110```
@glad glen
in #general-plugins as well
got it, thanks
How I can use a Placeholder inside another placeholder?
I tried it but isn't working properly
For example %math_0:_%config_prices_INTEGER_DIRT_10%*5% this should obtain the price with the Config Expansion and return the price x5 but results in error on load
%math_0:_{config_prices_INTEGER_DIRT_10}*5%
some placeholders support {placeholder} directly (like the math placeholder), though a lot don't and you'd need to use the Utils expansion for that
ok thx
How do i make the placeholders work for holograms? For example, i have a temporary group that has assigned to players (using LuckPerms), and i need that timer to be displayed on a hologram, altought it doesn't work:
- lines:
- content: 'ab6ce&lPortal open in: &r%luckperms_group_expiry_time%'
height: 0.3```
The hologram in-game looks like this - Portal open in: %luckperms_group_expiry_time%
This is not a papi question, check the documentation of the hologram plugin
Does this plugin has modded version for fabric?


