#placeholder-api
150650 messages · Page 55 of 151
Sounds like a proble with one of the expansions you tried to download. Can't tell which tho. Maybe remove them and add them back 1 by 1 see when it breaks
yes I did that
OH sorry qwq
Expansion-deluxetags.jar
U clearly didn't tho
Since its still there
Go to plugins/placeholderapi/expansions
And delete that file I sent above
Then restart the server
Can you do /papi parse me %deluxetags_tag% and see what it returns
It returns the black text seen in this img
I mean that just says it's not parsing the hex.
Blitz did you ever fully add hex to that? Idk if the expansion supported it.
well there still is the general issue of just no translating placeholders as you can see in the tab of that img qwq
Probably gotta talk to TAB about that.
If they parse via command then they are working.
hey, i got the Placeholder api plugin and downloaded statistic. i use %statistic_time_played% in my scoreboard as a placeholder to display the players time played, but its stuck and wont update its time, do you know how to fix this ? would greatly apreciate
what scoreboard plugin do you use?
scoreboard revision
What happens if you do /papi parse %statistic_time_played%?
Does it update? (if you use the command repeatedly)
"You must supply a target, and a message: /papi parse {target} {message}
oops
/papi parse me %statistic_time_played%
there
stays the same all 5 times
what does it say?
it just displays the time in the chat
console doesnt say anything
the time stayed all 5 times the same
That sounds like bukkit itself is not actually updating the statistic. For the statistic expansion we're purely the middleman iirc so the literal Statistic.PLAY_ONE_MINUTE or whatever is not updating.
"In addition to pre built placeholdrapi placeholders for Jobs plugin, now its have its own placeholders. Keep in mind that you can always check all possible placeholders ingame with /jobs placeholders command or even check what it would return with /jobs placeholder parse %jobsr_user_id% command." In theory they are built in and don't require a downloaded extension
Okay well then you will need to contact JobsReborn for help. I don't think there's more I can do there.
I told you what I could see on my end in terms of what PlaceholderAPI + DeluxeMenus are seeing on your server.
I could test by doing a dummy menu
Go for it.
DeluxeMenus will not parse any jobs placeholders unless it's coming from a valid expansion. You do not have the JobsReborn PlaceholderAPI expansion on your server. Unless he's doing some hacky stuff to get into PlaceholderAPI + DeluxeMenus, they will not parse.
Fixed it by changing from true to= disable-saving: false in the spigot.yml if anyone asks again
Hey guys, just wanted to confirm - the 1.17 version of PAPI isn't available yet, right?
That would be incorrect.
why overload javascript?
https://imgur.com/a/K3ZgfgO
Whats that?
It is what it shows when I do /tab cpu ||Plugin TAB Premium|| (it shows the placeholders that are being used and the ones that consume the most performance).
so use in actionbar / bossbar / scoreboard the javascript placeholders goes wrong.
Whats the ... at the end?
Id suggest to use a java expansion, js expansion was meant for small stuff like replacing something or changing the output based on a condition
what I do with that javascript is that the variables change it to customfont (texturepack)
where can i download papi 1.17?
and so far I don't know how to optimize it.
where can I find the variables to make a top balance in holograms?
https://imgur.com/yrmbB3C
https://imgur.com/biv2I86
I cant think of anything, sorry Nel
Hi, good night
where can i download papi 1.17?
ty
Does this help?
`Vault
/papi ecloud download Vault
Economy
%vault_eco_balance%
%vault_eco_balance_commas%
%vault_eco_balance_fixed%
%vault_eco_balance_formatted%
%vault_eco_top_balance_#%
%vault_eco_top_balance_fixed_#%
%vault_eco_top_balance_formatted_#%
%vault_eco_top_balance_commas_#%
%vault_eco_top_player_#%
%vault_eco_top_rank%
Permissions
%vault_rank%
%vault_rank_capital%
%vault_ranks%
%vault_ranks_capital%
%vault_prefix%
%vault_rankprefix%
%vault_rankprefix_#%
%vault_suffix%
%vault_ranksuffix%
%vault_ranksuffix_#%
%vault_prefix_color%`
You have to enable the top function in papi config btw
I already did it but it still doesn't work for me
okey
yeah. can't do anything about /papi parse tho
I am thinking of adding a different placeholder to output the hex as #aaFF00 but then its up to the other plugins to parse the hex
that means its past 10
it doesn't count to the next day
it counts to the day you're in
it might be possible
hmm
I think you could do it using the server_time placeholder inside the countdoun placeholder but rn I can't see how
%server_countdown_dd.MM.yyyy HH:mm:ss_{server_time_dd.MM.yyyy} 10:00:00%
try this @fathom crest
wouldnt that still be for the same day?
rip
hmm I am 100% sure I did it before but I Forgot hou
how*
it might've been javascript
yeah probably javascript expansion is the best choice here
Hmmm okay
where can I find the variables to make a top balance in holograms?
https://imgur.com/yrmbB3C
https://imgur.com/biv2I86
Hey, a question about the javascript extention for placeholderAPI:
`` if ( "%player_has_permission_server.vip.prefix.chat.green%" === "yes")
return "&a[&a&lVIP&a]&r ";``
I would like to check if the player has the permission server.vip.prefix.chat.green AND server.vip, would i just use && and compare both to "yes" ?
yeah that will work indeed
Thank you!
Hmm, doesnt seem to work
`` if ( "%player_has_permission_server.vip.prefix.tab.pink%" && "%player_has_permission_server.vip" === "yes")
return " &d[&lVIP&d]&r";``
I checked, i have both permissions, with the script above it works fine, with the new one with the && it no longer works, (i have both of those permissions)
The first expression needs the equals to "yes" as well
`` if ( "%player_has_permission_server.vip.prefix.chat.green%" === "yes" && "%player_has_permission_server.vip" === "yes")
return "&a[&a&lVIP&a]&r ";`` like this?
yes
does it have to be three ='s?
Not neccesary in this case, but strict equals should still be preffered
Still doesnt work :/
Hi, is there anyone able to explain why it pops up in the console and what does it mean? Is this some error or is it normal?
``
[21:20:07] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: player
[21:20:07] [Server thread/WARN]: [PlaceholderAPI] Loaded class net.milkbowl.vault.economy.Economy from Vault v1.7.3-b131 which is not a depend, softdepend or loadbefore of this plugin.
[21:20:07] [Server thread/INFO]: [PlaceholderAPI] Successfully registered expansion: vault
[21:20:07] [Server thread/WARN]: [PlaceholderAPI] Task #189 for PlaceholderAPI v2.10.9 generated an exception
java.lang.NullPointerException: Cannot invoke "java.lang.Class.getName()" because "clazz" is null
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.createExpansionInstance(LocalExpansionManager.java:343) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:138) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257) ~[?:?]
at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:709) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$2(LocalExpansionManager.java:288) ~[?:?]
at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:100) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1488) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:477) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1404) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1180) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[patched_1.17.jar:git-Paper-"4e2f0be"]
at java.lang.Thread.run(Thread.java:831) [?:?]
``
Are you using this:
I used this version
PlaceholderAPI-2.10.10-DEV-127.jar
So how do I use the dev version?
is this exception from that version?
That's using 2.10.9, use the dev jar
I looked inside PlaceholderAPI-2.10.10-DEV-127.jar and the version is 2.10.10-DEV-127, but your error shows 2.10.9
yes
I downloaded this version from this site
.
The exception is not from the version you downloadrd
The exception is from an older version
wait
¯_(ツ)_/¯
Sorry, I sent the log from where I had this trouble earlier. Now everything is in order and no information is shown. I will show success
🤦♂️
im stupid 🙃
Can I has a link to 2.10.10.27? I've only found up to .23
here
I'm sure this is asked a ton, but where is the documentation for creating a standalone extension?
I get most of it, but I'm not sure what package my class should be in
Another thing: If I wanted to to send a PluginMessage and get a response, how would I do it? I could use a CompletableFuture but I'm not sure how to register a listener
Hi, I'm new and I don't know much English but, by chance here is the placeholderapi for 1.17 somewhere?
How can I use placeholder api's placeholders in signs?
?papi-builds
if you have a plugin that supports it, then yes
I know CMI can do that but it's premium
wdym? you want an expansion without any plugin? https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/PlaceholderExpansion#without-an-external-plugin
So I am getting this warning and no idea why
java.lang.NullPointerException: null
at me.gabytm.placeholderapi.config.ConfigExpansion.register(ConfigExpansion.java:56) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.register(LocalExpansionManager.java:139) ~[?:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) ~[?:?]
at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:257) ~[?:?]
at java.util.stream.ReduceOps$5.evaluateSequential(ReduceOps.java:248) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.count(ReferencePipeline.java:605) ~[?:?]
at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$registerAll$2(LocalExpansionManager.java:288) ~[?:?]
at me.clip.placeholderapi.util.Futures.lambda$null$0(Futures.java:46) ~[?:?]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftTask.run(CraftTask.java:99) ~[patched_1.16.5.jar:git-Paper-517]
at org.bukkit.craftbukkit.v1_16_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) ~[patched_1.16.5.jar:git-Paper-517]
at net.minecraft.server.v1_16_R3.MinecraftServer.w(MinecraftServer.java:950) ~[patched_1.16.5.jar:git-Paper-517]
at net.minecraft.server.v1_16_R3.MinecraftServer.lambda$a$0(MinecraftServer.java:175) ~[patched_1.16.5.jar:git-Paper-517]
at java.lang.Thread.run(Thread.java:834) [?:?]```
@vivid sparrow ^
idk why that happens tbh
That seems to be a diff config expansion than on github tbh
I use the expansion on my server and works just fine
ah
yes
is it os?
Well I downloaded the config expantion from the ecloud with /papi ecloud install
yeah the ecloud one's been broken for a while now
aaaaa oke
Than it is ok
yeah you'll have to wait for gaby to update it
Hello! It seems as though the Factions Ecloud Expansion isn't loading due to an error. (Picture) I went here cause I saw the publisher of the factions expansion was clip, the one that published placeholder api on spigotmc. https://cdn.discordapp.com/attachments/861696878826881054/863043886439464960/unknown.png
WARN Factions is attempting to register placeholder via a placeholderhook class which is no longer supported!
Does anybody know of a way to get around this, or be able to use placeholders from factions?
what factions plugin do you use?
Yeah. Are there any special rules about the package the class is in?
And how could I register a listener?
everything should be explained on the wiki page I sent
The Massivecraft factions plugin, as far as I know, this is the one that has the extension
yeah you're right. the expansion doesn't seem to be open source tho
iirc there's an updated version on the ecloud
are you sure the placeholders weren't moved in the ppugin?
oh?
isn't the plugin abandonned?
ohhh it was renamed
and reuploaded by someone else
@slate parrot got o plugins/placeholderapi/expansions and delete the Expansion-Factions.jar
aight, I'll check if this works
it's not a verified expansion, so i gotta download it manually
ah yeah
it's probably made by someone else who had the same problem
just don't forget to delete the old one
Finally works! ty
I'll unverifiy the old one
I still don't see how to register a listener
if you want to use events in the PlaceholderExpansion class, I think you can directly implement Listener and use the events, should be registered as one automatically (or at least it did for me when I tried)
what about PluginMessageListeners
uh
you could implement Taskable and register the channel in the start method
and then implement the plugin msg class and use it
Could you provide an example/documentation
I don't think there's one
Hello, i have problem with PlaceholderAPI motd pinger. It ping motd from server.properties but i want to see the motd which makes the plugin for minigames, can somebody help me please?
not possible
Then, how can i do it?
🤷
How updated is the placeholder-api?
Thank you
How can I know the placeholders of a plugin?
well there's a few options
most are on the papi wiki: github.com/PlaceholderAPI/PlaceholderAPI/wiki/placeholders
but some are also just listed on the specific plugin's wiki or spigot page
depends from developer to developer
The plugin I have is not in the list
can you give me a link?
have you scrolled down a bit?
I just saw them
you just place them in your scoreboard or wherever you want to display them
you do need a plugin that supports them tho
so you can't just use any tab/scoreboard/chat plugin etc
you need one that supports PAPI
ess chat doesn't support PAPI
;-;
you need another chat plugin
okay thanks
or actually
you might be able to use ChatInjector
to use them in EssChat
but I Think its a bit broken
at the moment
okay
i will search
IS WORKING
This is the plugin of Chat Injector Updated https://www.spigotmc.org/resources/chatinjector-1-13.81201/
Hey! Is it possible to make papi ignore certain characters in a placeholder for a specific plugin? Or is this up to the plugins developer?
hello, i understand that placeholder api hasnt been updated for 1.17, but is there a way to make it work, i was looking at the #852317810394267708 and it has javascript expansion, what exactly does that do?
?papi-builds
1.17 version is available here ^
ohhh ok, thanks
how can I optimize this?
placeholders are being overloaded.
is there papi for 1.17.1?
@stable pollen get it from here ^^^ latest one
ty
how do i pass arguments to mysql placeholder
yea i know how to specify the specific query, but how do i pass data to that query
that may be the worst idea for a placeholder ever
Execute the statement on your connection
?
Have you created a connection?
yea but how do i pass data to the sql query?
You can implement taskable and read from your config section
like idk some numbers and text or something
thats not hard coded into the sql query
like arguments for javascript placeholder
like javascript_name,1,2,3,4 or what ever it was
Like a prepared statement?
yea
You are using MySQL, correct?
yes
i know what prepared statements are, but i have no idea how do pass data to the placeholder from outside the placeholder 😄
Oh
The only way you can pass data to your placeholder is the String placeholder that you recieve
its what i receive, but how do i send?
lets say i have a sql query that looks something like that 'SELECT x FROM y WHERE z = {some random data that should be passed to mysql placeholder}'
how do i get that random data to that query?
what is the syntax for that placeholder
I'm not sure what you are asking
um
lets say i have a command that receives input from player
that then runs a placeholder with that player command input
idk command be like /search test
how do i get that 'test' to that mysql placeholder
it can be any string
my placeholders arent working and when i do /papi ecloud list installed it has an error
heres the console logs: https://paste.helpch.at/elasovuxob.bash
and my placeholders arent working in the scoreboard i have so idk
but i can parse them in chat
lmao why don't insert queries work?
Are you using holographic display? Then you also need the plugins: Holographic Extension and protocol lib
my placeholders don't work on my survival server but they do on the hub when I have the same expansions and protocollib installed on both
Check the startup log. Usually when there's a problem it will tell you
Which placeholders exactly don't work?
Which placeholder
like the %something%
give me an example
what placeholder are you trying to use
run /papi parse me %crazyenvoy_time_left%
and show me what it returns
do /papi dump
and send the link here
what
?startuplog
Send that ^
my placeholders work in /papi parse but not in plugins
what plugin(s)?
wdym "in plugins"
the plugin author has to manually support placeholderapi
hmmmm
in the same deluxehub text?
yeah haha
yeah that's why I'm confused lol
try deleting this folder: /plugins/PlaceholderAPI and copy and paste the PlaceholderAPI folder from the server it works from
¯_(ツ)_/¯
🔨 A user has been caught in our great nation using off-brand products, they've been dealt with accordingly
O
sure
huh
👀
nothing :))
Dkim being dkim
😒
the ban thingy
this
and i guess how it works?
How did you even trigger that?
either that or gaby didn't like how we were talking about it
purge #2? 🥲
and that is all there is to be said 🙂
not songoda
What is the off-brand product here?
oh are you on a modified client?
cAPS gaby
leaks?
sH
leaks of what?
plugin leaks yugi
ohhh
shuSh
of premium plugins
ok
Lmao yugi
xD
Good morning
oh
Why are we on the same timezone yugi lol
lol
Weird
uh
according to this (http://www.geosats.com/timezmap.html)
We arent in the same timezone
🥴
Where do you live, yugi?
for some reason that didnt work D:
hmm
the config i have for the scoreboard is:
lines:
- "&7&m----------------------"
- "&7&lInformation:"
- "&5&lName: &d%player_name%"
- "&5&lRank: &d%luckperms_prefix%"
- "&5&lBalance: &d$%vault_eco_balance_fixed%"
- "&5&lClaim Blocks: &d%griefprevention_remainingclaims%"
- ""
would there be anything with that could cause the placeholders to not work?
thats why im confused lmao
since i can do /papi parse me %player_name% and that shows
since now PAPI has been updated for 1.17 support, and the change of JSONMessage to Kyori, does it means better hex support (from placeholders)?
the change from jsonmessage to kyori just affects commands
Hi all, with the latest PLacholder update, 2.10.10, do we still need the Javascript-Expansions installed in the expansions folder?
Is this a problem with you?
https://pastebin.com/nGzG0xfB
Looks to be an issue with that quest expansion
is there a placeholder for nicknames?
Yeah, assuming you're using essentials you have access to %essentials_nickname%
its bcz of the summer time. we move to gmt+3 time during the summer
I know
he's not in india btw
I don't remember exactly but he said Oman I tihnk once
oh wait you moved to #dev-general thought you just didn't finish the conversation xD
and its Qatar yeah. my bad
yes. nothing has changed to the expansion. you do need to use the build from #852317810394267708 tho if your server is 1.17
oh great I will keep it in the expansions folder then - ty
doesn't work across plugins for me
a lot of plugins have their own placeholder for names
attempting to use for TABS to call users by nickname as the "welcome [player]"
nvm got it
it does work across just needed to be %essentialsnick%
Not sure what you mean by that?
oh nvm, just saw ur latest messages.
yeah TAB has its own placeholders. its supposed to cache them or something so its better
why the %essentials_jailed_time_remaining% not working??
are you on the latest build of Essentials Expansion?
also the development builds of EssentialsX?
yes
no
then you need to get em
the method that placeholder uses only exists in the 2.19 version
oh then you will have to wait for 2.19 to launch. nothing else we can do
yeah idk. should be soon but can't 100% confirm
ok thx for help
I'm a bit confused. In my plugin I want to access placeholders from other plugins. What is the syntax for this?
do I call one of the functions in me.clip.placeholderapi.PlaceholderAPI ?
PlaceholderAPI.setPlaceholders(Player, String)
I'm trying to create an Expansion that uses a PluginMessagingChannel, but my BungeeCord proxy never receives the message. I can send code if anybody wants to help.
#development and just send the code as well
thanks, was thinking it was one of the get functions
use a paste bin
@turbid tide
yes?
i have a question
There is no time to wait! Ask your question @austere hawk!
i can make When I drink the potion depending on what potion to drink Will it expire in a few minutes? in the placeholderAPI
I am afraid I Don't really understand what you want.
Ex
❓
so you want to show how much until an effect expires?
yeah I Don't think you can. you might be if you know some javascript
@junior musk any idea if it's possible to use a different color for 'ping'?
uh
%server_ping% ?
wait, I mean in TAB
forgot to say that lol
yes
=/
interesting
Hi,
I have little problem with papi:
when I join my server my ping placeholder is 0 and with time is slowly getting higher. Do you know, how to fix that?
you mean the bungee one?
oh wait ping
lmao
I can't read
no pretty sure there is no fix to that. it takes a bit to update I think. it also might be that wherever you use it, caches it as well
for example I think TAB caches it
if he has TAB on Bungee with the bridge for PAPI placeholders then yeah, it has to wait for a bit to get the bridge's response with the placeholders' values
but %ping% would work fine since it's not a PAPI placeholder but a TAB one
Ok thanks, ill try
Okay so do you guys remember this error?
well
the dependencies issue doesn't show up if papi is not present
Example with papi:
Example without papi:
ah is that the 100+ plugins error
yeah+
But now it does make sense, with all the testing I did, PAPI was the easiest way to tell if softdepends were broken so I never did remove it
how to use teams expansion?
Thats an issue with the Statz expansion, contact the owner of the expansion and tell them their version string is null which is causing errors
Whats Statz expansion? Idk what it is.
You installed it?
Just remove it if you don't use it
Will be in the /plugins/PlaceholderAPI/expansions folder
thanks
is there an expansion that will show System.currentTimeMillis
server time shows that but it formats it I think
think it uses java simple date format tho and you can set the format
i dont think simpledateformat can format it as just the number of milliseconds
js it is ig
yeah I think it can only format the milliseconds until the next second.
Is there a placeholder for how many players are in a specific world?
thanks
Hi Dev
%player_has_potioneffect_<effect>%
when i use it So why is it an empty space?
I got the Effect
having errors on all scoreboard atm, "Internal Exception: java.lang.NullPointerException: Cannot invoke “java.util.Collection.iterator()” because “players” is null" when players try to join ://
scoreboard plugins
anyone got any ideas why?
How can I fix this?
After latest javascript expansion update (#852317810394267708) my exp_points placeholder show decimal point. Maybe because of engine changes. https://prnt.sc/1abmygd
Maybe there are some good souls who knows javascript and can edit my code to show only whole numbers as before? https://pastebin.com/5gZeQZmR
Thanks! 
Is there a way to get %player_x% with a bunch of decimals?
no but can be done
How can it be done
%player_(x/y/z)_long%
If it works fine, feel free to go ahead and deploy to eCloud.
Smh my head.
Thanks so much works perfectly. This would probably be very helpful for others in the eCloud.
go for it glare
Will do shortly. Deploying the new JavaScript Expansion to the eCloud.
Yeah, don't you have permission to deploy to eCloud?
yea i do
hey there! https://paste.helpch.at/oxiciqufog.md
sorry for the late reply
Hello, I'm having issues with the %server_countdown% placeholder... I'm trying to run a countdown 1 month later, but it says I have just under 7 days left. I've played around with a few different formats and dates but I'm having the same issue unless it's just a couple days difference. Any ideas how to fix this??
Nvm. I did an ecloud refresh, redownloaded the server expantion, then reloaded papi and it's working fine now.
has anyone had a problem with placeholderapi using an absolute SHITEton of memory?
Most likely an expansion
OH you know what, I did not think about that.
yeah if you need baltop, we have a dev version of the essentials expansion that includes their baltop placeholders and they are way way way more efficient
oh perfect, I do need that rofl
I've had this headache for the whole weekend with the 1.17 update and server's been OOMKilling on me all weekend
Oh it does require the 2.19 dev version of Essentials
This is merely a frontend for the Essentials baltop cache. You may need to run /baltop after a restart to initialize the baltop cache.
the baltop placeholders are:
%essentials_baltop_balance_fixed_<position>%
%essentials_baltop_balance_formatted_<position>%
%essentials_baltop_balance_commas_<position>%
%essentials_baltop_balance_<position>%
%essentials_baltop_player_<position>%
all the balance ones return the money formatted in different ways, and the player one returns their essentials display name, so like their nick or something
oh and positions start at zero
so like the #1 spot is 0 in position terms
is there any reason why placeholderapi would be using up a ton of ram? it creeps up slowly until it crashes the server
I'm not using any leaderboard expansions, just like 5 javascripts to read values of other placeholders and return another value
i've just found part of my answer. when I unload TAB by nezamy, memory uptick stops in its tracks.
What placeholders are you using in ur tab?
I'm having an issue with placeholder api breaking with %player_displayname% where its showing the vault prefix from luckperms, when its supposed to only show the name of the player. I tried updating to the latest version and it didn't work. So i downgraded, and it still is broken.
What its showing: §x[Mod] §x[Lion]§x DarkChroma
What its supposed to show DarkChroma
I found the issue. It's EssentialsX
I updated from EssentialsX-2.19.0-dev+202-a098055 to EssentialsX-2.19.0-dev+221-1556b91
Which caused placeholders from the 'Player' extension to break.
What engine javascript expansion uses now?
by default its still nashorn
but in cofnig.yml you can change it to quickjs
I think
Isnt it deprecated?
its shaded in the plugin now. Java removed it since java 15 but its the one that worked best. over 6 engines have been tried.
into the expansion*
not the plugin
player_name is suppose to only show the player name btw. displayname is the nickname basically.
bong
why %player_ping% doesnt work, im using 1.17 purpur
redownload the player expansion
can u tell me please that by using placeholderAPI like to display player name we use %player_name% so what should i use to display balance and available claim blocks
%vault_eco_balance% for money if your economy plugin supports vault
ohh and claim blocks available
what claim plugin do you use?
essentials
is essentiald not good plugin for claiming?
I couldn't tell you. never used it for that
which should i use
well I Know Lands is good
ohk i will try that
but there's also GRiefDefender, GRiefPrevention, LandLOrd, PRotectionStones
in my plugins folder there is griefpreventiondata folder also is that for claim?
data idk
griefprevention.jar file
oh yeah that one is for land claiming as well
I dont understand how this placeholder is flickering
Does anyone here do Javascript? One of my plugins has a playtime placeholder, but it returns like this (image)
https://media.discordapp.net/attachments/731716941022101627/864172960453361684/unknown.png?width=334&height=36
The dev told me I should use the PAPI javascript addon to format this
Perhaps with PlaceholderAPI's javascript expension. You'll have to split the placeholder with : so you can get the hours, minutes and seconds seperate and format it into something like "Your total playtime is 318 hours, 21 minutes and 50 seconds"
but i don't do much javascript so i am a little confused lol
what's the playtime placeholder?
%networkmanager_playtime%
https://pastebin.com/jYHAGU3i
For this it registers my expansion
[16:07:20] [Server thread/INFO]: original_crystals```
But when i execute the command `papi parse _LightDream original_crystals_crystals`
I only receive this
```[16:07:35] [Server thread/INFO]: original_crystals_crystals```
and how do you want it to look after?
Like this:
1 Week 6 Days 29 Minutes 34 Seconds
u forgot the %%
at start and end
ugh also
your identifier
should not have _
I think
either make it originalcrystal or idk
let me try
Is it possible to have something like an npc or a player head of a placeholder?
idk if that will fix but its a "rule" xD
have it where?
I think Citizens + Denziens allows you to set skins of NPCs based on placeholders
:))))))) ok
k thanks
👍
Do you know how that works?
I don't remember no. I think denizen explains it. don't exactly remember
I assume you actually want hours as well?
can u try this js? https://paste.helpch.at/ciyopekeke.js
its a bit ugly.
well very ugly
but I think it should work xD
I will try it in just a second, tysm
Made a few modifications to it because there were some typos for the word "minute", but it's parsing an empty placeholder now
oh my bad. I Forgot to return the value xD
Lol
It parsed:
39 Minutes322 Seconds
My actual playtime:
1 Week 6 Days 10 Hours 39 Minutes 7 Seconds
ugh
try this maybe? https://paste.helpch.at/wagesivemo.js
53 Minutes24 Seconds
322:53:24
Should be, yes
oh XD
ok that's an easy fix. 1 sec
👍
[16:56:10 WARN]: javax.script.ScriptException: TypeError: minutes.toFixed is not a function in <eval> at line number 1
oh I guess I should probably parse them to integers.
can you try this? https://paste.helpch.at/ratamayoqe.js
Works except for 1 thing, says I have more weeks than I actually have
Like, I have 1 week
It says I have 2
can you try this one? https://paste.helpch.at/azuremiqon.js
It works! :D
👍
any1 who knowsa good plugin that supports placeholder api that have placeholder for top 10 of top mobs killeed?
leaderheads or ajleaderheads
Can i use this in hd?
hd?
yeah as long as you have HolograhpicExtension and ProtocolLib yeah
cant find a pl with that name
nvm found it
ty
any idea where I can find a plugin for top mob killers
like to count it
Hey, I'm getting these warning, any idea what the issue may be? https://pastebin.com/8ALSSuUF
update your player expansion
Thank you!
when I use the math placeholder
to add 2 values
I have .000 at the end
can any1 explain how to use %math[precision]:[rounding]<expression>% and do not have
the .000 at the end
%math_0_<expression>%
ty
[precision:#] was the old way, got replaced in newer versions of the Math expansion
ty
However how do i display the time and date for example.
13/07/2021 | 10:22 Am
for example:
Date | Time
%server_time_dd/MM/yyyy | hh:mm a%
ty
so after the update many old plugins broke and not working, does that mean I am stuck at the placeholder api before the update, couldn't the dev just made a compatibility mode option
installing the
PlaceholderAPI 2.10.10 means the end of deluxetags and many other plugins that require no update since they are chat plugins
problem is deluxetag is made by you guys
and it breaks with latest placeholder api is ironic
you didn't update that since last year!
I am on 1.17.1 paper
and as a matter of fact, deluxetags was last updated apr 1 2020 on spigot
and a new build is in #general-plugins
pinned
can you please go to #general-plugins and read the pinned message and use that build of deluxetags?
it just shows like %delux_tag% or something
ok
I know, I didn't change the placeholder
but only place holder is showing tags don't show if I update placeholderapi
reverting to older version it works
I will go read
thanks for your help
👍
how do u fix the rest of it tho
rest of?
restart your server and send a FULL startup log please
read above to see where you can find it ^^^
sorry bro
but my scoreboard
ranks
tab
everything shows %something% when updating
can u please provide the startup log? we'll start from there and take them 1 by 1
use this one ^^^
guess that works too
yeah it hides player ips
ah cool
ok can you please give me an example of a placeholder that doesn't work. just one
all %luckperms placeholders
alright. can you do /papi parse me %luckperms_prefix% and tell me what the command returns?
I don't know I have 50 players online i had to revert back to old version
no. I mean rn
absoultely nothing? empty space?
yes
can you try this then? /papi parse me %luckperms_group%
the output is %luckpersms_group%
also last deluxe tags breaks chatex, but I guess thats a chatex problem
can you do /papi ecloud download luckperms then /papi reload. then check the console, and see if any errors showed up.
I did that, and also deleted old ones
didn't solve it for me
I tried before that papi update all
have you read the entire post for the pinned message? #general-plugins
it tells you to go to plugins/PlaceholderAPI/expansions and delete the deluxetags expansion from there. its no longer needed
and then a server restart might be required
I will download a local copy of my plugins folder
and setup a test server and start fixing stuff there
this might be fault of other plugins
that didn't update to fit the new papi
but I don't expect them to do
thanks for your help blitz
my plugins folder is 18 gb
so when that finish downloading I will launch a test server
Hey! Does anyone know if there is a placeholder extension or plugin that can show a player with a certain tag?
[18:20:32 ERROR]: [PlaceholderAPI] failed to load class files of expansions java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:326) ~[?:?] at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?] at java.lang.Thread.run(Thread.java:834) [?:?] Caused by: java.lang.IllegalStateException: zip file closed at java.util.zip.ZipFile.ensureOpen(ZipFile.java:920) ~[?:?] at java.util.zip.ZipFile.getEntry(ZipFile.java:347) ~[?:?] at java.util.zip.ZipFile$1.getEntry(ZipFile.java:1126) ~[?:?] at java.util.jar.JarFile.getEntry0(JarFile.java:578) ~[?:?] at java.util.jar.JarFile.getEntry(JarFile.java:508) ~[?:?] at java.util.jar.JarFile.getJarEntry(JarFile.java:470) ~[?:?] at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:165) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at java.lang.ClassLoader.loadClass(ClassLoader.java:589) ~[?:?] at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:119) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:235) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:131) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:114) ~[patched_1.16.5.jar:git-Tuinity-"f7c4249"] at java.lang.ClassLoader.loadClass(ClassLoader.java:576) ~[?:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?] at me.clip.placeholderapi.util.FileUtil.findClass(FileUtil.java:63) ~[?:?] at me.clip.placeholderapi.expansion.manager.LocalExpansionManager.lambda$findExpansionInFile$4(LocalExpansionManager.java:319) ~[?:?] ... 2 more
What does this mean?
I get this error when doing /papi reload
Can you provide the generated link you get from /papi dump?
Please update your PlaceholderAPI and see if it still occurs.
Hi, I want to uppercase some placeholders, what is better? JS or Formatter expasion or it doesnt matter?
Noob
☹️
it was added back with the daddy expansion i believe
why is there even a %daddy% placeholder? 👀
welp nvm, doesn't do anything based on GitHub
papi aka daddy?
say papi in spanish

why list %daddy% as a placeholder while it only adds /daddy and there isn't even any placeholder
idk
it doesn't care xD
dadi can do whatever the fuck he wants
btw its bcz papi bot takes the placeholders from here
😈
so basically it is clip's fault I guess xD
lmao
I love how it also ads /father
xD
yeah I know, but it still doesn't explain why it's there x)
👀
bcz it needs a default placeholder I guess. the identifier. and since it does nothing else I guess all there is, is %daddy%
I goues %daddy_ANYTHING% is what it should've been but not as nice
ah, probably
could have just said None as well ¯_(ツ)_/¯
meh, not like it matters anyway x)
yeah
Hey! Does anyone know if there is a placeholder extension or plugin that can show a player with a certain tag?
what kind of tag?
Like a player tag. Using the command /tag add you can tag a player
where is that command from? like I'm confused
It is a basic minecraft command
oh no idea then. don't think there is something for that
Dang
there's a /tag cmd ? 👀
oh yeah there is, since 1.13, didn't know about that
seems like there is a way to get a player's tags through Spigot, but I'm too lazy to make an expansion rn tbh 😅 so if anyone wants to make one, here's the method https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/entity/Entity.html#getScoreboardTags()
or rename the ScoreboardObjectives expansion into Scoreboard and add placeholders related to scoreboard tags
so we don't end up with tons of related expansion that could be merged in one
I mean I could create an expansion but the only placeholder would be has_tag_<tag>
Or something like that.
If you want to, go ahead! You don’t have to though.
Give me a little bit 🙂
@leaden holly Want to try this out? The placeholder should be %sbtags_has_tag_<tag>% and it will return true / false if they have it or not. Case sensitive.
Thank you so much! I'll try it out in a couple!
Thanks. Let me know how it goes.
It works perfectly! Is there a way to make it so if it comes back true, it shows the persons name?
Uh I don't think that's really the purpose of the check?
It's simply checking if they have the tag or not?
Ah. Would it be possible though to display a players name if they have a tag with a placeholder?
Uh
js expansion maybe
This is an X Y problem here.
You need to elaborate on the problem and how that would be a solution.
Ok, what do you need to know? I'm just a bit confused.
Well the whole purpose of a placeholder is to return data so theoretically you would take that data it returns and do stuff with it. Not have it return data based on what it originally returned?
Oh ok. So basically, I am looking for a plugin/extension that shows the name of the player who has a specific tag. I need this for a tablist so it shows a player in a specific location on the tablist.
Yeah I think we're on the same page. You could even use js like dkim said but that's not my expertiese.
or PlayerList
Ok, how would I do that?
Blitz am I right in what I said here? It's confusing, right?
it returns a list of players based on requirements. and those requirements could be what a placeholder return
and you could either return the full list or just the name of the n player in the list
1 sec. will provide wiki
Ok!
and your placeholder will look something like this:
%playerlist_online,placeholder,yes,list,sbtags_has_tag_<tag>||true%
you can get the idea from here
and the wiki
going to sleep now. gn
Ok! Thank you so much Blitz & Waffle King!
Yup! Thanks Blitz. I went ahead and released the expansion to the eCloud so others can use it too.
hi on there is place to send a suggestion ? i want to placeholderapi support it ?
depends for what the suggestion it is. just leave it here and I'll redirect you where you should be
ok thanks :3
I have huge issues with papi lagging my server
you'll need to elaborate if you want to get help with that
timings report?
this was with placeholderapi with all expansions i need enabled
and this
as soon as i disabled all expansions server started to bread again
this is list of my expansions:
expansion bungee, essentials, javascript, localtime, luckperms, ontime, player, playerlist, playtime, server, statistics, vault, viaversion, votingplugin, world
so far i reinstalled player and vault, lag didnt return
i think its javascript expansion
tps became unstable first few seconds when i relaoded papi with that expansion installed
that tps loss on graph is when i installed javascript expansion
soon after i deleted it and tps came back to normal
hey
Give that a shot
Wait
@vague bridge Are you on the latest js-expansion?
If so, please send a ss of your placeholderapi config where you have the values for the js expansion
I managed to resolve the issuse. I reinstalled it and made in tab config refresh rate of JavaScript way higher from 100ms to 10000
It works fine now however on 1.16 it worked normally on 100ms
I'll send you when i get home
what is ur java version ?
16
Alrighty
ok so I am very new to making plugins with PlaceholderAPI, basically I am trying to implement placeholerAPI to a plugin that has many different variables. So the placeholders I am looking to create are '%variables_variablename%' '%variables_variablename1%' etc. I have attempted to look through one of my friends plugins on how to implement it, but I have no idea how to. I have looked at the API and quite frankly, I do not understand what to do. I am very new to coding and need help.
I'l take a look thanks
can someone help me my placeholders arnt working with placeholderapi
im using featherboard
# PlaceholderAPI
# Version: 2.10.10
# Created by: extended_clip
# Contributors: https://github.com/PlaceholderAPI/PlaceholderAPI/graphs/contributors
# Issues: https://github.com/PlaceholderAPI/PlaceholderAPI/issues
# Expansions: https://api.extendedclip.com/all/
# Wiki: https://github.com/PlaceholderAPI/PlaceholderAPI/wiki
# Discord: https://helpch.at/discord
# No placeholders are provided with this plugin by default.
# Download placeholders: /papi ecloud
check_updates: true
cloud_enabled: true
cloud_allow_unverified_expansions: false
boolean:
'true': 'yes'
'false': 'no'
date_format: MM/dd/yy HH:mm:ss
debug: false
expansions:
player:
ping_color:
medium: '&e'
high: '&a'
low: '&c'
server:
tps_color:
high: '&a'
low: '&c'
medium: '&e'
server_name: A Minecraft Server
javascript:
debug: true
github_script_downloads: false
engine: javascript
argument_split: ','
use_quick_js: false
vault:
baltop:
check_delay: 30
cache_size: 100
enabled: true
formatting:
thousands: k
trillions: T
quadrillions: Q
billions: B
millions: M
localtime:
date_format: dd/MM/yyyy hh:mma
bungee:
check_interval: 30
do u have maxim placeholderapi installed ?
k
hope they update it placeholer for plugin Ontime (link: https://dev.bukkit.org/projects/ontime ). The placeholer i need is %Ontime_current_login%, wat it can do ? this just see a play time but when you log out it will reset and i very like it you can see pictures to know wat i want :3 HOPE THEY UPDATE IT
that plugin hasn't been updated in 5 years. I'm pretty sure no one will update it xD. I'm sure there are alternatives for this tho
Is it possible to have an item based on a placeholder, so the item is different for everyone?
Can anyone tell why my placeholder is not being registered? Can't find a solution.
https://paste.helpch.at/uzozukirot.java
Inside my onEnable:
new GangPlaceholderRegistry(this).register();
}```
Everything else work like it should, just not the placeholder part, so I know the methods within should work.
I might have registered it wrong, since it's not being logged in the console by PlaceholderAPI like other plugins do.
show us GangPlaceholderRegistery
It's the link I provided
😛
lol
what happens if you do /papi list?
does it show up?
I'll test 2 sec
alr
It's a bit weird, because after my plugin loads, it says:
[20:48:15 INFO]: [PlaceholderAPI] Successfully registered expansion: gang
However, later on it says this:
[20:48:15 INFO]: Running delayed init tasks
[20:48:15 INFO]: No expansions were registered!
[20:48:15 INFO]: Done (5.967s)! For help, type "help"```
on start-up
hmm
papi list displays gang
Status: Registered
Author: BeastyBoo
Version: 1.0.0```
and if you use any of its placeholders what happens?
I'm not able to send a picture here, however it just says; %gang-top%
Ehm, don't mind me. I was wrongly informed on my end! Thanks for your time xD
uhhh np xD
hi there